A lot of the old rules were a lot less about spirituality than they were about general cleanliness. Where you shit isn't a religious experience, but the mosaic law outlined where these people had to shit and what to do with it. These were not an enlightened people. Basic safety messages had to be delivered from god to be followed.