Because she was looking for male validation anywhere she could get it. She confused genuine parental love with romantic love because her father hasn’t shown her either, and knew what Magesh did for her was out of love, she probably just didn’t know which one…
The whole point was to show you that there’s nothing you can do to keep someone from cheating if that’s what they want to do , not your looks, not children, not marriage , literally nothing.