The USA has been meddling in the affairs of countries in the Middle East since the early fifties, having taken over from the English, who did the meddling before, using only slightly less force.
Border lines were drawn, dictators were installed, armed, and toppled, and the civilian population suffered greatly because of this.
People were bound to be slightly pissed off having suffered through all this.
If you want to reduce terrorism, look at your foreign policies, not at monitoring your population.