Egypt stopped allowing Palestinians to cross when refugee members of the Muslim Brotherhood (intimately tied to Hamas, and from which Hamas is an offshoot) co-opted the 2011 protests to seize control of the country.
Imagine how Egypt would look if their pro-democracy, pro-socialist revolution wasn’t fucked by Hamas the same way Gaza has been.