Judges 2:22 (ESV)

22 in order to test Israel by them, whether they will take care to walk in the way of the LORD as their fathers did, or not.”

The Lord’s purpose in keeping the nations in the land is a probationary one: to test the fidelity of his covenant people. Will Israel follow the Lord and his revealed will, like their forefathers had, or not?