While the US military saw the need to plan for the withdrawal from Afghanistan, civilians in the Biden administration refused to look at the facts and would not use the time available, according to a just-released report.
https://www.washingtonpost.com/national-security/2022/02/08/afghanistan-evacuation-investigation/