It's more about budget cuts. Public pools need to be maintained and modernised in the same way as commercial ones. Here in Germany communities decided to save money by closing or privatizing public pools. When I was a kid there were enough public pools around where schools could offer swimming lessons. Those are now either gone or replaced by much more expensive private ones.