I'll take a stab at this...
With a ground pool, you fill it and drain it to the city sewer... on a ship, fresh water is at a premium, so to drain the pool you don't want to through it overboard so you pump it to a retention tank. When you are ready to refill the pool, you pump it back to the pool. It seems they want to keep it warm so they don't have to wait for the water to warm up once they refill the pool.
Too bad the retention tank isn't in the engine room. Ours was a brisk 120°F on the submarine... we did pump about 15000 gallons of fresh water overboard a day though... our fresh water generators were finicky so we ran them at full and discharged the overage. Better to have too much than not enough...