When God promised His people that He would judge their sin, and when He kept His promise and judged them, He was acting in accord with His character. He is a just God, and only someone who is unjust would allow people to commit crimes and acquit them indefinitely. God’s wrath against sin arises from His goodness and holiness.