During the day, the sun heats up both the ocean surface and the land. Water is a good absorber of the energy from the sun. The land absorbs much of the sun's energy as well. However, water heats up much more slowly than land and so the air above the land will be warmer compared to the air over the ocean.