This may be so for a public school, but not for a private one. They can establish their own limiting rules of conduct and exclude students who don't comply.
If the student or parents don't like it, they can always go back to the public school system.
exactly! it is pretty clear to me that the ones objecting here have never paid for private school!