In nearly every religion I am aware of there is a variation of the golden rule. And even for the non-religious it is a tenet of people who believe in humanistic principles.
The possibility of divorce renders both marriage partners stricter in their observance of the duties they owe to each other. Divorces help to improve morals and to increase the population.