This is the reason why the Lord allowed those nations to remain, and didn't immediately drive them out by handing them over to Joshua.