> what's the deal with schools doing this stuff
The school didn't. They sent her to Yale-New Haven, which is a real hospital, with a real psych ward.
That's where she went through the standard "dangerous person" admission procedure that everyone is reacting to.