And, you're wrong on afghanistan.
Al Queda had their training bases there. The taliban refused to turn them over.
We nearly caught bin laden in tora Bora.
https://newrepublic.com/article/72086/the-battle-tora-bora
Hopefully you can manage to read that.