It made the wrong sort of sense that he would ... it was just his silly, chivalrous way. But how did Hermione go about finding out these things that he wouldn't tell her? The solution came without her even asking.