Considering America’s stance on the “containment” of Communism (following WWII), what prompted the United States to intervene in Korea but not China?

Considering America’s stance on the “containment” of Communism (following WWII), what prompted the United States to intervene in Korea but not China?