Because mutual funds employee people that have the necessary training and skills to get better returns. In addition, mutual funds pool funds together so they invest in portfolios that are well balanced and diversified so that the risk is lower and the returns more stable.
So even if you don’t consider the fact that a mutual fund is managed by professionals, the fact that there are a lot of funds available, it creates something that you could consider as “economies of scale”.