Yahweh left these people-groups there to test the Israelis, to see if they would obey his commands which he had told Moses to give them.