Pansy had befriended Hermione sometime after she had gotten together with Ron, after what appeared to be a torrid and wild love affair between them.  At first it confused Hermione. It was one thing for Pansy to love Ron but Pansy made a concentrated effort to integrate herself into Ron’s friends’ lives. That was when it occurred to Hermione that Pansy was "a fixer." 