Why did the ancient Egyptians build irrigation facilities if they lived next to a river?

In June, the water level in the Nile rises sharply, the river overflows its banks – it overflows, flooding the coastal lands and almost the entire delta. The spill lasts 2 months – from mid-July to mid-September.
With the help of irrigation structures, water was supplied to the hills and fields were irrigated during drought.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.