Yeah, sunk costs are part of it. But people tend to wind up in the same relationships. Co-dependent is common, or dependent on narcissistic
Super interesting to think of it from a game theory perspective. Like how to two people, who essentially are trying to get feelings of love, respect, as well as status in society from each other, optimize the relationship. Do all relationships, or all happy relationships anyway, reach a sort of Nash equilibrium?