As a shear guess judging from the past, I’ll bet the USA UK’s and Israel’s CIAs’ knew a long time ago, possibly years before Trump took office, that the Taliban was wining, like when you play a checker game, and you know ahead of time you will lose soon.
So they told Trump, while he was campaigning and or after he got in, start telling the public right away that “we don’t want to be in Afghanistan anymore”, because the natives there are winning and THEY don’t want us in Afghanistan anymore.
If the prior 20 years of western people colonizing Afghanistan (like illegal immigrants) (and the dreamers) was progressing, they would want stay forever. I’m sure the people running away had great jobs, businesses, maybe nice homes etc etc. And suddenly “tilt” game over. Like in Iran? Cuba? and Vietnam?
If I myself as a civilian, migrated there, a backward country, for job or business opportunities, I’d know it would be risky, and I would not expect sympathy from the people back home if my new home was imploding.