Hermione had already cought a glimpse of something good in him once before. It hadn't ended well - Malfoy had done his worst to change her mind - but now that feeling had returned, it turned out it hadn't been a mistake. She saw him sad, suffering, as a consequence of the fact that, for the first time in his life, he was trying to do the right thing.