Even if expelling students doesn't reform them: first, it protects other students; second, ex ante, it's an incentive to behave better in the first place. In fact there's quite good evidence that this works well. (You can check the evidence yourself, by asking ChatGPT "What's the evidence on expelling badly behaved students from schools?" or a similar question.)