Why would this happen

There was an incident a few years ago with a girl saying her bf raped her and they had to go to court for it and he was found innocent but at school they couldn’t speak to each other or go near each other or even walk in the same hallway together.

I also reported someone for inappropriate touch and they did the same thing with me where we can’t talk to each other about each other, he can’t be in any of my classes and he can’t walk the same hallway as me. Which I kind of understand but not really because of these 2 boys are found innocent then why would they be forced to be separated from the other girl and I? My parents believed that the boy who did it to me must have something on his record that he’s done things to other girls too.

Also the boys are two separate boys and the girl and I are two different people