They did in the South of the United States in the 1960s and 1970s. My parents moved from California to Tennessee when I was in the 4th grade. Some idiot teacher whacked me with a ruler. She was obviously deranged and attacking me; I punched her in the face, bailed out of the desk, and went to the other side of the room. I wound up expelled for a month. I didn't care.
Later, in the 8th grade, I attracted the disfavor of the feetball coach, who wanted me to be on "the team" because I was quite large for my age. He also happened to be the vice-principal and in charge of "discipline." He would set "the team" on me for regular beatings, and if I did anything to defend myself, I would be expelled. I spent a lot of time at home that year, until I got smart and went after knees and elbows when attacked. I got a few broken teeth, broken glasses, and a bunch of black eyes before "Coach" realized "the team" was being benched for injuries one or two at a time.
At this point the principals decided I needed "licks", which was their word for "beating with a stick." Called in to the office that time, there were the two principals and a large male teacher who were going to administer "licks." I told them they might be able to do that, three adults on one kid, but they had taught me how to fight dirty. They went nuts screaming about "permanent expulsion", at which point I figured since I didn't go to school there any more, there was no reason to stick around and listen to their crap.
The fallout from that got the state School Board involved, and meetings with my parents. The principals were stupid enough to brag about what they had been doing. I wound up back in school, unfortunately, and they wound up not having their contracts renewed the next year.
School was just a prison and punishment for being a child.