Recently I had a tooth break. My dentist gave me an appointment to be fitted for a crown. That’s fine, but before she can fit the crown, she has to remove the decay.
That’s how the Old Testament prophets described things. They regularly spoke of God drilling down to remove the decay from his people, so he could restore them. They called it judgment, and it’s the necessary preparation for God’s restorative work.