While I’m not an expert at this, it seems that it’s because evolution has produced a) incentives and interactions that lead to individuals pursuing their own interests and resulting in the advancement of the whole, b) the natural selection process, and c) rapid experimentation and adaptation.