Yeah, I feel like a lot of religious practices (burial being one of them) originated from things that were a detriment to society or seen as "unclean" and that caused infection, diseases, or maybe just a bad stench. I wonder if long ago our ancestors learned a lesson about this that they codified in religion, but forgot the "why" part and now we are just going to repeat history.