A valve to prevent backflow… so the river doesn’t wind up in the reservoir, or the effluent in the shower pipes.
From A practical treatise on hydraulic and water-supply engineering: relating to the hydrology, hydrodynamics, and practical construction of water works, in North America by J.T. Fanning, a civil engineer with a taste for pipes and fixtures.