The spine that kept the ANA upright was U.S. air power and Spec Ops troops. When Biden removed all that overnight by abandoning Bagram, morale crashed and the ANA collapsed.
The real possibility of that happening should not have surprised professional military people.