Joyce followed Danny all the way from class, presumably including an elevator ride,  up to his dorm room.  She is a ninja.