They probably were assigned there to be in the lookout for something happening.
Some of my yuckiest memories from teaching we’re times when I was assigned bathroom duty.
Probably not, just typical poor writing from what passes for journalists these days. Should be “School staff intercepted them hiding in a bathroom during class time prior to carrying out their plans,”.