National Weather Service meteorologist Walter Drag explains that it occurs due to the difference between the warm air over land and cool air hovering over the ocean. “What you have is, when wind increases during the day, cooler air is heavier, and it's drawn inland, replacing the warmer air that's rising.