It's funny how this just broke the typical anime trope of total clean school rooftops. Like hell, in almost every anime, manga, etc., the rooftop of high schools are basically restricted to main characters only.
That NPC-like alert level of the teacher was funny, I mean, they were basically in front of him in the hallway and he didn't notice simply, because they were not nearby.