#Why were the people being reminded of the disgusting things they had seen when they left Egypt?

They were being reminded of the disgusting things they had seen so that there would not be any among them whose heart would turn away from Yahweh, worship the gods of those nations and so that there would not be any root producing gall and wormwood among them. [29:17-18]