Index funds win through lower costs
Before costs, the average actively managed dollar must earn the market return, because together all investors own the market. Active funds then subtract higher expense ratios and trading costs, so after costs most of them trail a low-cost index fund tracking the same market. Picking the rare fund that will win ahead of time is not reliably possible, so owning the whole market at minimal cost is the better bet.