The IMF did it to try to improve the country’s export/import trade balance, and it was a condition for them to give Egypt a dollar loan to refinance their dollar debt.
And at the end of the day, it’s the saver and wage earner that gets stuck with the cost.