The US doesn't have compulsory swim lessons for little kids, but I do remember it being a part of my high school education. (Probably only 1 or 2 kids in my gym class couldn't swim though.)
Community pools are very much a thing all over the US as well. I imagine COVID changed them pretty dramatically but it was very much a part of my childhood, even though I had neighbors with pools. Just look at the movie The Sandlot. The community pool was a major part of the story.