If you’re keeping a balanced portfolio of assets and the price of one goes up, you sell to rebalance, not buy.
https://en.m.wikipedia.org/wiki/Capitalization-weighted_inde...
Additionally, you have the reality that every day, investors buy and sell that fund. The tracking fund, therefore, has to liquidate or buy new holdings to match the NAV (net asset value) as shares are created or redeemed. This is where tracking funds will vary in their performance as some ETF providers might be a lot worse at matching up inflows and outflows.
1) A fair few of those 500 stocks are not very liquid, you'll lose a fortune chasing the shares.
2) Think about what happens if you want to provide exposure that isn't 1x the index.
3) What happens when there's a replacement?
4) What about things that aren't statically replicable?