The transfer of energy means, in convention process, transport of matter. In this case, hot water has lower density than cool water. The water with less density ascends and leaves gaps that are occupied with cooler water "packages".
It's a form of mechanical energy