One theory is that beer’s high water content helped keep kidneys working, since dehydration increases kidney stone risk.
It’s also possible that the hops in beer help curb leeching of calcium from bones; that “lost” calcium also could end up in the kidneys as stones.