There was not a man left in Ai or Bethel who did not go out after Israel. They left the city open and pursued Israel. Bible see other translations

“They left the city open.” This was overconfidence. The king should have made sure there was some protection in the city. The men did not close the city gate when they left. This certainly made it easier for Joshua’s ambush to take the city. It is possible that this advantage was unexpected.

Commentary for: Joshua 8:17