Egypt needed dollar loans from the IMF to keep their part of the global dollar debt ponzi going. Everything gets restructured, refinanced, and larger, constantly.
Before giving the loan, the IMF makes the country devalue the currency to make labor cheaper and try to improve the export/import balance. And the IMF makes them do other top-down economic reforms that comply with their vision of how economics works, which generally caters to the US and Europe.
@gladstein has a big article and book that covers this process in detail:


Bitcoin Magazine
Structural Adjustment: How The IMF And World Bank Repress Poor Countries And Funnel Their Resources To Rich Ones
The IMF and World Bank do not seek to fix poverty, but only to enrich creditor nations. Could Bitcoin create a better global economic system for th...