Honestly, you have an idealized view on capitalism.
It's still the most productive system humanity has ever used at scale, but capitalism favors monopolies, cartels and every other anti-competitive behavior you can think of.
That's why we have regulations against such behavior. Even if - as it turns out- these regulations can still be weaponized by bad acteurs to ultimately strengthen their hold on markets