Millipedes get a majority of their water from the fresh fruits and veggies that they eat, but their cuticle is also somewhat water permeable and will absorb water this way as well from their humid environment.