I have known many teachers in my time, both as a student and as a grown-up, and while a handful of them might have lacked a certain degree of tact at times, by and large, they knew where to draw the line. Teachers who don't know where that line is, or ignore it, don't last long in the profession.
It looks like one teacher crossed a line in a bad way, and might have paid the price for it.