Yes, God cared even where they “did their business.”  When they had a bowel movement, they were to go outside of the camp, dig a whole, and then cover it when they were done.  And this was the law millennia prior to the understanding of germs, microbiology and more.

Designate a place outside the camp where you can go to relieve yourself.  As part of your equipment have something to dig with, and when you relieve yourself, dig a hole and cover up your excrement.  For the Lord your God moves about in your camp to protect you and to deliver your enemies to you. Your camp must be holy, so that he will not see among you anything indecent and turn away from you. (Deut 23:12-14)

God cares about community health.  And if you’ve ever been in a nation where people go anywhere and everywhere, you know this one really mattered.