Why do some people stay in relationships that hurt them?

We often stay with someone who hurt us. We choose to fight, to beg, to do everything so that they will stay.