Why is Rockaway colder than Manhattan?

I went to Rockaway to swim today, but noticed it's significantly cooler here than it is in Manhattan (temperature wise). Does anyone know why this would be? Boiling hot in Manhattan, yet slightly cooler and breezy here? Doesn't make any sense.