This is why Joshua circumcised the men: After the Israelites left Egypt, all the men old enough to serve in the army died in the desert on the way out of Egypt.