Hermione wasn’t sure if she should be annoyed that Malfoy saw her so vulnerable or be glad that he woke her up from the pain. So when he opted to stay with her, she didn’t throw him out of her room. It was oddly comforting to not be alone, despite what she had said to him.