Coastal areas have more consistent weather compared to continental areas. Since coastal areas are near a body of water, which cools down and heats up slower than land. This is why the temperature of a coastal area is more consistent as the body of water (usually oceans or seas can stay on the average on both day and night time.
This is because the ocean absorbs the heat at daytime and cool off at night in a controlled manner. The farther the area from the coast, the more drastic change in temperature and more frequent changes in weather are experienced. The predictable weather in coastal areas makes more people want to live in it. Weather forecasts are more accurate in this areas thus people can prepare as early as they hear weather updates.