She could be a former lover who still has feelings for the protagonist. Maybe they had a deep connection that she can't let go of easily.
It might be a friend who has a special bond with the main character. There could be some shared history or secrets that keep bringing her back into the story. For example, they might have made a promise in the past that she is determined to keep.