“For when Your judgments are in the earth, the inhabitants of the world will learn righteousness” (Proverbs 26:9b)
God’s judgments in the earth are a mercy, they are to wake up the hard hearted so that they turn to Him. Even the seemingly ‘harshest’ judgements are preferable in comparison to an eternity burning in Hell.
He loved us enough to put us ahead of Himself. He suffered the penalty in our place so that we don’t have to bear the wages of our sins in death. Because of Him we can have life and life eternal.