It is so easy to get lost here at Hogwarts. Almost everyone gets a little confused every once and a while. Even seventh years get lost sometimes. Maybe it was because they were looking at all the pretty artwork on the walls instead of where they were going.