God corrected His people, and it was horrific with blood, violence and death. His people are His bride, it's a relationship, remember the wedding supper? If He didn't correct His people He wouldn't care about us.
A couple of bruises on your thigh and bum isn't anything in the same league as watching everyone around you get killed for disobedience.
Proverbs 13:24
He that spareth his rod hateth his son: but he that loveth him chasteneth him betimes.
Correction is needed for children, sure. What about women?
The historical context is important. Biblical men were the ones who initiated divorces. Women today are the ones who initiate divorce. They come up with all kinds of reasons, sometimes they get bored and want alimony.
Matthew 5:
31 It hath been said, Whosoever shall put away his wife, let him give her a writing of divorcement:
32 But I say unto you, That whosoever shall put away his wife, saving for the cause of fornication, causeth her to commit adultery: and whosoever shall marry her that is divorced committeth adultery.
You won't find scripture which says a woman put away her husband. Any woman who is grieving her husband and is puffed up with feminism is spreading confusion. Inverting the natural order has had terrible consequences.
Both men and women need to live according to scripture, not just women.