We often think that "bad" relationships are motivating by self-loathing or a wish for self-destruction, but I think that loving people who hurt us is more tied to a profound and earnest wish to soothe ourselves and recover from older hurts. And I've also found that having empathy for that urge is the best way to move through it, and beyond it.