I don't want to say something radical. These organizations exist more to protect their country from the US government. It's just that in an era, they were called terrorist organizations and were vilified.
The United States has not been able to bring democracies to Afghanistan in the past 20 years, but only a flickering illusion. Afghanistan is their country.