for 2 weeks every year until 8th grade
Wait, what? Wouldn't they assume, at some point, that you could swim if you participated in the past?
As to the question as posed in the thread title. "I suppose so. I don't know for sure; it's not as if asking if participation was compulsory would have ever occurred to me. Swimming was one sport activity I both liked and was good at, and that was far from par for the course for school sports. Besides, that was back in primary school."
I did take swimming again when we finally could choose our sport in the last three years of high school, in the first of those years. (The others, I played table tennis and then handball.)