The best explanation for why the temperature of land near water is different than inland is:
The air over the water affects the air and land nearby.
This is because bodies of water have a moderating effect on temperature. Water heats up and cools down more slowly than land, leading to milder temperatures in coastal areas compared to inland regions.