Those sentiments didn’t arise in a vacuum.
"Operation Cyclone was one of the longest and most expensive covert CIA operations ever undertaken.[2] Funding [..] rose to $630 million per year in 1987,[1][4][5] described as the "biggest bequest to any Third World insurgency".
What happened next was a logical consequence.