After World War 2, the dominant geo-political battle was between the United States and the Soviet Union.
This could be boiled down to a fight between communism and capitalism.
As such, the CIA worked on behalf of the capitalist system in developing countries to ensure that they remained outside the grasp of communism.