Because more often than not, the government is directly or indirectly involved in creating those attacks. Game theory tells us that from a government perspective terror attacks have much more upsides than downsides.