Matter of fact if too many people asked to go then class stopped and we all went.
It was Catholic school tho but even when I went to public school, teachers would give you the "chile please" look if you tried to leave after your homie left.
However, there are rules in place that you cannot deny "bathroom" visits because there may be a health issue even if its documented.