She hadn’t changed into Ruby yet and she couldn’t risk being seen as Hermione Granger in the dungeon. There was no reason why she would be here. So, she tried to sneak into the next empty classroom to change her appearance.