"Her" unambiguously means the woman. I don't think the phenomenon can be explained in a general way that would be any better than just using our brains each time. It reads the way it reads.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.