The decrease in volume when water is heated is due to the fact that the water molecules move more quickly at higher temperatures. This increased molecular motion causes the water molecules to move closer together, resulting in a decrease in volume.
The rate at which water expands or contracts with temperature is known as the coefficient of thermal expansion. The coefficient of thermal expansion for water is 0.000212 per degree Celsius. This means that for every 1 degree Celsius increase in temperature, the volume of water increases by 0.0212%.
The change in volume of water with temperature is important for a number of reasons. For example, it is the reason why ice floats on water. Ice is less dense than water, so it floats on the surface. This is also why hot water rises in a pot of water. The hot water is less dense than the cold water, so it rises to the top.