That's not at all the same thing as someone who starts off with a violent or threatening act.
In reality, the calculation tends to underestimate the risk of staying and overestimate the risk of leaving. But this is not unique to the victims of domestic abuse. It's the same reason people stick to bad jobs, depressing but non-abusive relationships, etc.
The abusive relationship has to appear better than the available alternatives. There may be a few instances where it is true, but in many cases, it isn't.
Fear of unknown can be very powerful, horror movies build mainly on this. Also cumulative hurt of staying, while being higher overall, is much less than single huge immediate dose of hurt received by running away, at least they project it this way.
Put kids into the mix, and we have what we have.
Or, the other way round: If you were raised to develop healthy boundaries, you will not end up in an abuse relationship later on in life.