Because the LORD your God walks in the midst of your camp, to deliver you and to give up your enemies before you, therefore your camp must be holy, so that he may not see anything indecent among you and turn away from you.
Israel was now encamped, and this vast army was just entering upon action, which was likely to keep them together for a long time, and therefore it was fit to give them particular directions for the good ordering of their camp. And the charge is in one word to be clean. They must take care to keep their camp pure from moral, ceremonial, and natural pollution. I.
Commenting on Deuteronomy 23:9-14
For the Lord thy God walketh in the midst of thy camp,.... In the tabernacle, which moved when the host marched after the camps of Judah and Reuben, and before those of Ephraim and Dan, in the midst of them: this was the position of it while in the wilderness, and afterwards when they came into the land of Canaan, and went to war with...
Deu 23:14 For the camp was to be (to be kept) holy, because Jehovah walked in the midst of it, in order that He might not see “nakedness of a thing,” i.e., anything to be ashamed of (see at Deu 24:1) in the people, “and turn away from thee.” There was nothing shameful in the excrement itself; but the want of reverence, which the people...