They control the territory militarily, it's defacto Israeli territory. I don't wish it to be so, but it is.
From a Military perspective intentions don't matter, only capabilities. Egypt is a theater competitor, it would be foolish to give them more military capabilities.