No matter how many stupid looks they show on TV and how much "complete surprise" they proclaim, there's people been making a living off this war for a while and they saw the writing on the wall.
Do we expect they've packed up and gone home to a quiet retirement? Or is the next chapter of "how much shit can we waste" already on railcars?
The war in Afghanistan was still fairly popular among the general public until very recently.
Aside from that, here's a quote from Biden's speech about Afghanistan I find relevant.
"Today, the terrorist threat has metastasized well beyond Afghanistan: al Shabaab in Somalia, al Qaeda in the Arabian Peninsula, al-Nusra in Syria, ISIS attempting to create a caliphate in Syria and Iraq and establishing affiliates in multiple countries in Africa and Asia. These threats warrant our attention and our resources."
https://www.whitehouse.gov/briefing-room/speeches-remarks/20...
One answer could be: it was Trump who started this and he wanted to stop the corruption, and the US is getting better. Another answer could be: it hasn't stopped, its just a lull before the US starts up endless war again.
I suspect that one can make any argument fit any reasons from any angle and there will be some truth in some of each of the ideas.