Countercountercounterpoint: if it's imperative then how did people perpetuate society before governments?
Government's only role is to enforce contracts between consenting individuals. They got no business dictating the terms of the contract or changing those terms when the contract is violated. Both practices are so common for marriage contracts that people actually believe it's good and right. It is not.