It's also the case, in the particular experiment of leaving it overnight, that the large thermal mass of the water will take longer than the small thermal mass of the air, to heat up again from the night's coldest point once the sun rises.

Peter