Keep in mind, Egypt was the first arab country to recognize Israel and its right to exist.
Egypt’s leader recognized Israel’s right to exist, but that doesn’t mean the teeming masses agree. They just don’t want a million angry Palis flooding across the border and setting up jihad camp in Egypt. It would be a bullet magnet and an eyesore and a drain on resources.