Now this is why he did so: All those who came out of Egypt--all the men of military age1--died in the desert on the way after leaving Egypt.2
References for Joshua 5:4
All the people that came out had been circumcised, but all the people born in the desert during the journey from Egypt had not.
The Israelites had moved about in the desert3 forty years4 until all the men who were of military age when they left Egypt had died, since they had not obeyed the LORD. For the LORD had sworn to them that they would not see the land that he had solemnly promised their fathers to give us,5 a land flowing with milk and honey.6
References for Joshua 5:6
So he raised up their sons in their place, and these were the ones Joshua circumcised. They were still uncircumcised because they had not been circumcised on the way.