The US had significantly more community pools before desegregation. Once they were required to allow all swimmers, construction of new public pools stopped and many existing pools were drained. This is the reason private pools are so popular in the US.
https://www.marketplace.org/2021/02/15/public-pools-used-to-...