The cost of keeping pools running means some schools have had to close them.