This has nothing whatsoever to do with capitalism.
Capitalism is an economic system in which those who invest capital rather than labor or ideas are considered to be entitled to the bulk of the profit from the endeavor. This is defended by the claim that the capital-ists are also exposed to more of the risk, and hence deserve more of the reward. There are strong counter-arguments to this position.
The counter arguments to this position are entirely theoretical and have never been proven to work in the real world. Perhaps there is some non-capitalist economic system out there waiting to be invented which could deliver superior results without eventually devolving into an authoritarian dystopia, but I doubt it.
However, just as there's no ironclad rule that an enterprise in a capitalist system must seek to maximise profits, there's also no ironclad rule that the best or only way to see profits is to do things that other people want to pay for.
Increasingly, the financialization of the US (and other) economies means that substantial profits can be obtained by extracting value from transactions, rather than creating value to society.
Mariana Mazzucato has discussed this at length in her excellent book "The Value of Everything: Making & Taking in the Global Economy Economics"
The point is that capitalism only works well for allocating resources when it happens to follow the goal of producing value for others, and in that sense any economic system that somehow prioritized this would have the same benefits as capitalism. Note that it also needs to take externalities into account, otherwise the short term benefits of value production-driven economic activity become a long term net negative. Capitalism has not proven itself in this regard so far.
The thing that is different about capitalism is that beyond (generally) favoring value production, it also favors the owners of capital as the beneficiaries of generated profit. This in turn makes the owners of capital have deeply vested interests in ensuring that this asymmetrical distribution of profit does not change (they will almost certainly lose if it does). That is what defines capitalism, not free markets, not value creation, not entrepeneurial activity.
If you held a gun to my head, I'd severely limit the ability to extract value via financial transaction fees (either by directly limiting them or taxing the shit out of them), and I'd require corporate boards to have worker representation, and I'd require some level (25-100%, not sure) of worker ownership of for-profit corporations.
The goal of all these is to nudge for-profit corporations towards (a) actual value creation, instead of extracting value (b) increasing the distribution of profits to the labor class.
Plenty of capitalisms do, have done, and are currently doing, exactly this. I should know: I live in one.
In early days, capitalism did contribute to increased production- for example, the role it played in removing the crown's ability to grant monopolies in different fields to favorable subjects, and allowing private ownership at all.
Early monopolies and their place-men held back economic development, and allowing anyone who sees a new need to start a business definitely increased production, but Capitalism is governance by the owners of capital.
At this point, that is again holding back production, as capital owners (like the place men before them) incentives' are to increase their personal wealth even at the expense of production. We see capitalism inhibiting production most clearly in the way private equity consumes and destroys productive enterprises by loading them with debt, using the money to issue enormous dividends payable to the special class of shares held by the firm, and then selling the scraps of the company that remain after bankruptcy. This is also visible in the way that banks no longer offer loans to new businesses unless they have collateral to borrow against, and the flaws in how venture/angel investment works.
When optimizing for production, governments turn to policies that are considered socialist in order to remove these obstacles.
One category of this is stuff like social housing and free education/healthcare which reduce the cost of living for workers, increasing the size of a country's workforce and allowing cheap production of goods & services. Unemployment benefits and support for non-workers (like children and the disabled) also fall into this category, as that allows workers to change employers with less friction. Other ways are limiting what owners of capital are allowed to do with their property- a prohibition on the Private Equity model of destroying companies would fall into this category, or subsidizing immature industry.
There is a balance between capitalist policies and state-controlled policies, where either side can inhibit production once it has power without responsibility to the citizens it operates on.