Yahweh had allowed those people-groups to stay in that land. He did not expel them by allowing Joshua and his men to defeat them.