The article gives another reason:
Authorities say the river will help expand agricultural land and reduce the need to import food and wheat.
The Russian invasion of Ukraine in February last year drove a global surge in wheat prices, leaving Egypt struggling as it is the world's biggest wheat importer.
In addition, in recent years there have been droughts in East Africa as well, which can't have been good for the amount of water the Nile carries, and the dam you mention just adds to the whole thing.
It's from a longer quote in "A Brief, Incomplete and Mostly Wrong History of Programming Languages" about the language Haskell:
Some other languages like e.g. Rust also use monads. The point I was trying to make humorously was that many programming languages sometimes do use math concepts, sometimes even very abstract maths (like monads), and while it's not maths per se, programming and computer science in general can have quite a bit to do with maths sometimes.