Its the transfer of latent energy; the water loses energy/heat when water changes form to a vapor. 2400J/gram H2O at 0C. When the water condenses elsewhere that energy is released again. That's why evaporation cools, and rain warms ^_~.
Plants evapotranspire to control temp, people sweat
The hanging gardens of babylon were the first AC units, utilizing the cooling effects of plants along with irrigation. booya!