Why do some women date men that treat them poorly?

Nice_Guy_Last
Now, this isn't about the "I would treat her so much better," narrative that some guys are guilty of. This is merely a question of why would someone date someone that hurts them?
I have a friend whom I consider a sister. She is so close to me, it might have scared off a few potential suitors of the more jealous strain for me. She is, however, not a romantic interest for me, but it kills me when I see her being mistreated by the douchebags she dates. I have dated a few terrible women in my life, and I can honestly say that I would have rather not dated anyone at all than to go through those relationships.
My question is, why do people repeatedly date the same type of fuckboy that left them crying and hurt the last time? Why are they so desperate for love that they would submit themselves to abuse just to have an imitation of it?
Updates
+1 y
Follow up question: so, the basic concept to be taken away is that people date a specific type of person based on their own self-worth.
That being said, there is a vicious cycle here: person starts dating asshole, asshole mistreats person, person breaks up with asshole, but the feeling of regret makes them think less of themselves, causing them to date another asshole, rinse and repeat.
How does one help another off of this cycle of pain and hardship?
Why do some women date men that treat them poorly?
68 Opinion