because they absorbe the air (hot or cold) transfering heat to attempt to maintain the temperature if its hot outside the ocean will absorbe the airs heat, if its cold the ocean will expell heat into the air trying to heat the air