This is due to the great heat capacity of water.
Work Step by Step
As the heat capacity of the ocean is very high, it acts as a controlling factor on the temperature of the region. When the temperature rises, the water absorbs much of it. This makes it harder for the sun to raise the temperature of the region. The water then releases the stored thermal energy during the night.