Market cap weighting is special. If company A has 500 shares, company B 500 also, than a fund that has 5 shares of A and 5 of B is market cap weighted.