You need to understand that at similar conditions, land and water actually receive the same amount of heat. It’s just how much heat is needed to raise the temperature/hotness of the item.
It’s because of heat capacity. Heat capacity is a measure of the amount of heat necessary to raise the temperature of one mole of a pure substance by one degree Kelvin, but intuitively it means how much heat energy you have to “pay up” in order to increase the temperature(or hotness) of a particular substance.
Water is great at “storing heat”, because it takes a lot of heat energy to actually heat it as compared to say metal and sand.
The opposite applies the same way too. Water cools down slower than land even if they release energy at the same rate.