In the past (and probably certain places still today), it was safer to drink an alcoholic drink than the water.
I hear that from people who think it’s a sin to drink alcohol. The other thing they say is that it wasn’t wine like is sold today. That may be; possibly it’s like the sweet wine old Italians used to make at home.