Anyway, I have found the answer from a Christian. He said that according to the book of Exodus, the reason was because the Canaanites were a wicked people.
However, this leads me to another doubt. Is the Bible sometimes necessary to explain certain events mentioned in Al Quran?