Compounded by the exiting forces leaving behind a whole bunch of equipment that’s basically just too expensive to transport home, so the Taliban come rolling into Kabul and Kandahar atop American and British MRAPs etc.
See also IS in Iraq for details of a previous example.