God wanted the Israelites to be completely separate from the other people groups who worshiped idols. Otherwise, the Israelites might also start worshiping the false gods of the Canaanites.