Joshua said to the two men who had spied out the land, Go into the prostitute's house, and bring out there the woman, and all that she has, as you swore to her.
One result of moral filth is physical disease. Therefore, the destruction of the Canaanites (in some cases together with their sheep and cattle) ensured the removal of deadly diseases that could have threatened Israel’s existence. The absence of Canaanite religious practices would also be a help to Israel’s religious life and moral well-being.