Being emotionally compromised causes people to make decisions that don't make sense.
I'm in no way defending her but her feelings of insecurity, jealousy, and inferiority overtook her feelings of love for the MC which made her emotionally connect with the other guy.
Now she has to live with...