Judgment as an Act of Mercy
Commentators explain that the slaying of wicked kings is paradoxically presented as an act of God's enduring mercy. By removing corrupt and violent rulers, God showed benevolence to the world and His people. This act stopped evil and transferred land and resources from idolatrous purposes to be used for righteousness by Israel.