The reason they did that is that all the men who left Egypt, those who were old enough to be soldiers, died in the desert after they left Egypt.