Centrally planned economies don't make these considerations and languish in productivity as a result.
The wealth generated should go to the investor who earned it.
>>or even automate rich people out of their jobs.
Go right ahead. Any automated tool you create that can effectively identify investment opportunities would be a enormous boon to humanity.
What you'll find as you grow more familiar with how an economy works is that investment is a dynamic, ever-changing process, and individual initiative and enterprise is always necessary to make it happen.
Many people make the mistake you're making now, of taking for granted the process of managing and allocating capital, because they don't understand how enormously complex the task is.
As for efficiency, you're overestimating how efficient political establishments can be in comparison. Just because a plan calls for the government to act efficiently, in the interest of the public, doesn't mean that this is what actually happens.
All of the tendencies toward waste and corruption seen in the market are manifested in politically appointed institutions as well. Private sector investment has been demonstrated to be the best way to increase productivity, and to be far more effective than politically directed management of economic assets.
Investments that produce positive returns are the primary mechanism by which productivity increases. Productivity gains explain almost all of the rise in standard of living experienced throughout human existence.