At night, the roles reverse. The air over the ocean is now warmer than the air over the land. The land loses heat quickly after the sun goes down and the air above it cools too.