Ignoring morality entirely for a moment, it is rather remarkable that the US watched the Russian experience in Afghanistan and said, "yes, we'd like that for us."1
Minority in a larger country, minority wants to separate into its own country, the main country won't let them, some conflicts and shooting, shelling, killing, and an "outside player" steps in and starts destroying the main country.
I was a freshman in college at the time and we discussed it in a geography class.
We all agreed that a nation state based approach to the problem of terrorism was absurd, but there was no way any US president would do anything less. Remembering the phrase "a wartime president has never not been re-elected" turns my stomach. Iraq of course was another matter, but Afghanistan was more of a greek tragedy.
One of the pillars of supporting dollar as world reserve currency (and thus having endless credit) is showing that it’s backed by strong security force. Thus it necessitates periodic demonstrations and actual training of said security force. Thus constant deployment to some far countries to “fight for piece”.