Why did the US choose capitalism and not communism?

When the US was forming, communism did not exist. The idea didn't come around till the 19th century under Karl Marx. The reason the US did not convert is argued but most people agree it is because of the failure of communism in Russia.