Egypt gets nearly all of their income from tourism. Terrorists tend to drive away the tourists. This was why they used to have the Tourist Police. Armed military to protect the tourists.
Egypt still has tourist police.