The thing is, we see this sort of pattern of religious practices ultimately lining up with legitimate health concerns in almost all religions. So it makes a lot of sense that it evolved, unintentionally to that purpose and they just thought it was god giving them a sign.
When people ate meat that was on the verge of death when it was killed they got sick and diedd themselves. When people ate healthier meat they lives. Overtime superstition arose that it was just god wanting people to do this or that, and it largely reflected the health, though that was never an intentional decision. It happened naturally as the consequence of their superstition.
We see the same in christian religions. For example people quickly noticed that people who drank beer were healthier than people who drank water. This was thought to be some magical gift imparted on beer by god. This is why the Catholics have saints specifically associated with beer and why it was routine for most churches to brew their own beer as part of a monk's duties, which they viewed as sacred. Even today many ales have long traditions and still brewed by monks (like trappist ales).
In reality it was just because the boiling process associated with making beer killed off many of the germs so fewer people died from it.