The oceans are in a constant state of flux trying to equalize temperatures with the air. When the water is warmer than the air it releases heat to the air and when the air is warmer than the water the heat flows to the water.
Warm always flows to cold in an effort to equalize because cooling is the natural state of the universe.
How dare you quote the 1’st law of thermodynamics. We’re supposed to be in full emotional tizzy mode here.