The water discharged from a subsurface drainage system. If a building foundation is below the water table, a sump pump may be required. Discharge from the sump may be stored and used for irrigation.
First 10 image search results of foundation drain architecture