Ezekiel 23:30 I will do these things unto thee, because thou hast gone a whoring after the heathen, and because thou art polluted with their idols.
God would punish them. God would make it happen. They chose to sin. They chose to worship false gods. They worshiped idols and now God was going to cause horrible things to happen to them.
It is a recurring theme in this book. Sin has consequences. You can’t sin and get away with it.