Because citizens often make decisions that benefit them in the short term but that are catastrophic in the long term. You might be right if everyone were a perfectly rational actor with access to all relevant information, but they aren't.
You are right, there are no systems that are perfect when they involve humans. However, you used two countries that are, respectively, failures of socialism and communism as an argument against the "invisible hand of the market".