This is why Joshua circumcised them: all the people who came out of Egypt who were males — all the men of war — had died in the wilderness along the way after leaving Egypt.
In context
2At that time Yahweh said to Joshua, “Make flint knives and circumcise the Israelites a second time.” 3So Joshua made flint knives and circumcised the Israelites at the Hill of Foreskins. 4This is why Joshua circumcised them: all the people who came out of Egypt who were males — all the men of war — had died in the wilderness along the way after leaving Egypt. 5All the people who came out had been circumcised, but none of the people born in the wilderness along the way after leaving Egypt had been circumcised. 6For the Israelites walked in the wilderness forty years, until the whole nation — the men of war who had come out of Egypt — had died off, because they did not obey the voice of Yahweh. Yahweh had sworn to them that he would not let them see the land he had sworn to their fathers to give us, a land flowing with milk and honey.