People arrive at this conclusion because people have seen that despite its many flaws, it's still considerably better than the alternatives. All one needs to do is a comparative study involving countries that adopted "capitalism" and other alternatives. It's a no-brainer.
>The idea that local optimization is better than global baffles me completely. Where do people get it from?
maybe because it's practically impossible to have the information needed to optimize at global level at any point in time (primarily because information becomes redundant faster than it travels to the global hierarchy and gets processed there), and because competency and impartiality to do global optimization is near impossible.
Theoretically, a competent global optimization would be better than localized optimizations (just as in greedy algorithms vs globally optimized ones), but practically the closes such entity would be UN - and we have thread running right now about its uselessness.