(he did this only to teach warfare to the descendants of the Israelites who had not had previous battle experience):
NMVOnly that the generations of the people of Yisra’el [He Holds Onto The Heel Of God] might know, to teach them war, at the least such as before knew nothing thereof;
OJBOnly so that the dorot of the Bnei Yisroel might have da'as, to teach them milchamah, such as before knew nothing thereof;
T4T[3:1–2]At that time there were still many people-groups in Canaan. Yahweh left them there to test the Israeli people. But many of the Israelis in Canaan were ones who had not fought in any of the wars in Canaan. So Yahweh also left those people-groups in Canaan so that the descendants of those who had not fought in any of the wars might learn how to fight.