#Why did Yahweh give instructions to the people of Israel about where and how to relieve themselves?

Yahweh was walking in the midst of their camp, so the camp must be holy in order that Yahweh would not see any unclean thing and turn away from them. [23:12-14]