Why did God command the extermination / genocide of the Canaanites, women and children included?

This article has been translated into the following languages: