The name of the original inventor of irrigated agriculture is lost to antiquity.
One can perhaps imagine an inquisitive desert inhabitant noting the greener vegetation along a watercourse and putting two and two together.