In fact, he followed her without paying attention to where they went, thinking of going home, done with the useless agony of school. He realized something was wrong when Hermione sneaked into an empty classroom on the third floor and forced him inside.