Trump did not help his own agenda when he surrounded himself at the start with generals, many of whom had made their careers at U.S. Central Command. They fundamentally disagreed with the president's worldview. They were personally invested in Afghanistan. And several would come to see it as their job to save America and the world from their commander in chief.
https://www.axios.com/off-the-rails-trump-military-withdraw-afghanistan-5717012a-d55d-4819-a79f-805d5eb3c6e2.html