Truth be told, I think it's because we brought the fight to them. It's far easier to strike the soldiers in Afganistan and Iraq than it is to do it on US soil, even if the shock value of the latter is greater.
But that's my theory. Perhaps the intelligence agencies really have prevented some attacks, and it's one of those things that the general public will never know how close they got to. That is a possiibility too.