The Puritans in New England drank beer for the same reason. It was common for their water to be polluted.
...neither the ancients nor the Puritans knew anything whatsoever about bacteria...
They did not have to. They knew that if you drank this you got sick and if you drank that you did not.