Medieval folk didn't drink alcohol to avoid dirty water

That headline makes it sound like they were teetotalers because they were afraid of bad water - in the booze.