they're actually only 4y apart in age--maybe they knew each other a little bit in hogwarts back in the day? she was a gryffindor and older than him so it might have just been in passing, unless she could have e.g. tutored him in something or they were in some kind of club together?