If a temperature sensor is used to compensate a pressure sensor, it only needs to know the temperature of the chip, and not necessarily the exact temperature of the water. Furthermore, they would be calibrated together so any temperature reading error would be calibrated out.
Dive computer...