Rain infiltrates the planted soil, collects in the gravel layer, and travels through the perforated pipe to the exposed outlet.