I think that a good answer here is : the spread of communism.
United States got engaged in both of these conflicts because it wanted to stop the spread of communism to those countries. Soviet Union got engaged for the opposite reason: it wanted to support the possibility of a communist government in those countries.