This used to be the case. Even in rural Wyoming. In each region there were at least one military-style dedicated boys school and girls school focused on disciplining bad students. Public school students would receive a few detentions and suspensions, followed soon after by expulsion to the boys school. Parents could also voluntarily and temporarily enroll their kid there if they needed disciplinary help.
The boys school had a good reputation and would have engagement with the local schools via sports and dances.