Capitalism doesn't give perfect results. Just best results overall. Other systems just give better results to a more limited set of people.
Like sure, communism killed like 150 million people, mostly through starvation. But Stalin and Mao had pretty cool digs.
As compared to capitalism where obesity is a big problem for poor people.
No system is perfect, but capitalism gives most benefit to most people.