Things swing back and forth in a kind of dynamic equilibrium. Too well off, a people risk becoming spoiled. But God has mercy anyhow, even as a people suffers loss. Other, better things come back into focus.
"The LORD is merciful and gracious, slow to anger, and plenteous in mercy. He will not always chide: neither will he keep his anger for ever.