Egyptians were clever. They had rivers, water and advanced water-management technology.
The shaduf, which is a hand-operated lever with a bucket, to lift water from rivers and canals for irrigation.
The Nile River annually flooded which was monitored because it determined agricultural success.
As well, the Nile served as a transportation route. Huge stone blocks transported through and evidence suggests that canals and harbours were built near some pyramid complexes to help move materials closer to construction sites.
https://aeraweb.org/wp-content/uploads/2022/08/aeragram15_1-...
Clever people. Not as advanced as the Romans but they had technology and prospered for a long while.