Divorce laws are relatively recent and women weren't allowed to inherit, have properties, work in many professions... To sum up, when your only options are: marry, be a prostitute, be a nun, operate in the margins of society, well, then remain married is your best option.
But if you have more options in life, you would only remain married if it is worth it. If the marriage is good for you, basically.