Your solution is to have the government restrict freedom at gunpoint. A solution with a long history of examples and attempts, of total failure
It restricts your freedom of robbing others, of killing people, of not abiding by a contract, there are many "freedoms" you don't have that are necessary for society to function.
As the other comment mentioned, markets != capitalism, capitalism is a specific system to exploit markets but it doesn't mean it's the best way that will ever be found to provide incentives to produce what society wants or needs.