Yahweh did that in order to punish us for our sins, and remove our guilt. As a result of our being exiled, all the altars to other gods in Israel will be demolished, and we will be forgiven for the sins that we have committed. There will be no more poles for worshiping the goddess Asherah, or altars for burning incense to other gods; they will all be torn down.