Hi,
"This is because water has a high heat capacity, which means it absorbs a lot of energy in order to increase in temperature (thus releases a lot of energy when it decreases in temperature). This means water can absorb a great deal of the energy on hot days, keeping the surrounding air cooler, and release a lot of energy to the air on cool days, keeping the air warmer"
Have a great day!