The Judgement of God
As the Israelites prepared to enter the land, God gave them a stern warning. “If you do not drive the inhabitants of the land, … as I plan to do to them so I will do to you.”
The Canaanites were being dispossessed because of their wicked ways. God’s plan was to punish these people and give the land to His chosen people, a people that were holy unto Him. To maintain their holiness, and because sin pollutes, God wanted His people to have nothing to do with the people being driven out. The Israelites were to drive them out completely. If God’s people failed to obey His command, He warned then that they would suffer the same punishment as the Canaanites.
Apparently God wanted the inhabitants of the land devoted to Him.