There was a time when drinking water was unsafe for everyone! People routinely drank small beer (low alcohol beer) and regular beer, to avoid it. They also drank boiled water, such as tea.
In the book "The Ghost Map", about a London cholera epidemic, one population that did not get sick were people working for a brewery.
https://www.amazon.com/Ghost-Map-Londons-Terrifying-Epidemic/dp/1594482691