Put away = Abandoned (divorced). At the time, women would not own property or participate in the economy. So putting her away means abandonment. Perhaps she was infertile (reference to age—“wife of your youth”).
Seem pretty basic: don’t leave your wife for another woman—that is bad; that is adultery. Perhaps the biblical scholars at the time interpreted differently to provide support to the actions of the ruling elite.