I can confirm that this was the rule at least through the sixties.
It seemed to be particularly in force in NY State. Maybe its an old progressive thing, maybe its because NY was a maritime state - but they really pushed public swimming, and swimming tests on all students.
not in nc