Maybe they shouldn't have to tried to shelter, support and protect the Taliban and Al Q'aeda when the US was trying to root them out for the last 20 years.
The US supported the Taliban in the 80's during the Russian-Afghanistan Invasion and while that help drive out the Russians, it also gave them 9/11, in return. 
You reap what you sow.