She asked her to apologize to the people in her class for her actions in the class.
And yes teachers are supposed to play mommy and daddy to some extent. That's the whole reason we ever had civics classes in schools in the first place, it's why we said the Pledge of Allegiance. Because schools teach cultural morals alongside hard subjects like math and history.
I was listening to psychologist just the other day on the needs of special education for kids and he made a statement about schools that I think is important. That schools exist to also teach certain social mores.
The statement was in the context of seeking special education and how much time should pass before you should petition a school board for a client but the larger point was specifically about how we do expect kids to be parented to some extent by the school. We, the adults, expect it and assume it's happening.