The idea is by making it beer you keep safe water safe for longer. It doesn't sound particularly weird to me (I don't know if it was really a common practice in medieval Europe.)
Before hopping and such (didn't become widespread until the 1200-1400s) beer didn't really last that long. Without refrigeration, modern bottling and almost sterile conditions in modern factories beer will go bad very fast.