I observed the phenomenon growing up when I filled buckets of hot and cold water and left them outside in freezing temperatures.
Near boiling water is about 4% less dense than near freezing water. If you filled the buckets right to the top, there would be less water in the hot bucket.