Answer:
The warmth from the sunlight causes the excess water in the terrarium to evaporate and rise to the top of the bottle. Once the water vapor reaches the top of the glass, it cools and condenses back into liquid droplets. These droplets drip back down onto the moss, creating 'rain' to keep the ecosystem moist.