This ought to tell you what you're looking for.
Briefly, prior to the invention of the drinking fountain, there were wells of water with communal drinking cups, from which typhoid could spread. The advantage of a modern drinking fountain should be obvious.