Hermione held Snape's hand in hers as he slowly died from Nagini's bite. Using the last bit of his strength he gave her the last thing she ever expected...a single tear. A tear imbued with a memory he said was for her and no one else. The memory takes Hermione by surprise, as does everything that follows.