It's fair due to the ratio of students to teachers. They get precedence because they cannot afford to be waiting in line for a toilet or short on TP when they have classes to teach.

Also, all of my schools have had private bathrooms for teachers, from preschool to high. I don't tend to notice where college professors go for their breaks.