Scripture recounts twice in these verses the removal of a king of Judah from Jerusalem: Jehoiachin and Zedekiah. Both did ‘evil in the sight of the Lord’.
The judgement was so severe on Zedekiah that his sons were killed in his presence by the Chaldeans and his eyes were put out.
God is holy and even though the people living in Jerusalem were to be ‘his people’ meaning you might think he cared more for His people and their presence in the land than His own reputation, yet God demonstrated He cares more for His reputation, meaning that people know He is holy and therefore does not tolerate sin, than His people.
After all one of the conditions to be ‘God’s people’ is to keep His covenant. When you don’t keep it you are judged as an unbeliever. Though God’s promises are eternal, meaning His keeps His promises, yet He will still judge His people severely when they commit evil.
He can do nothing else for being a righteous God He has no choice but to uphold His true nature, for He cannot deny Himself, and that means judging that which is unrighteous even if it is His own people.
As Peter says in I Peter 4:17-19, “17 For it is time for judgment to begin with the household of God; and if it begins with us first, what will be the outcome for those who do not obey the gospel of God? 18 And if it is with difficulty that the righteous is saved, what will become of thegodless man and the sinner? 19 Therefore, those also who suffer according to the will of God shall entrust their souls to a faithful Creator in doing what is right.”