Cold water has a higher density than warm water. Water gets colder with depth because cold, salty ocean water sinks to the bottom of the ocean basins below the less dense warmer water near the surface. The sinking and transport of cold, salty water at depth combined with the wind-driven flow of warm water at the surface creates a complex pattern of ocean circulation called the 'global conveyor belt.'
In contrast, the Earth gets hotter and hotter at depth primarily because the energy of radioactive decay is leaking outwards from the core of the planet. While this geothermal energy is transferred to ocean water along the sea floor, the effect is so small that it's immeasurable by direct means.
Why? The actual amount of heat generated per square meter of Earth is quite small, especially compared to the amount of heat necessary to warm the ocean. Geothermal energy emanating from the Earth averages only about one tenth of a watt per square meter. At that rate of heat flow (without taking ocean currents into account), it would take well over a year just to heat the bottom meter of the ocean by one degree Centigrade.
However, the ocean is not standing still. Complex deep ocean currents driven by density variations in temperature and salinity are constantly replacing the bottom layer of ocean water with colder water.