The business of fund companies is mainly bonds and stocks. Bonds are generally low-risk and are usually used to preserve value. A while ago, the stock market was "red in the motherland", and fund managers were more experienced and had inside information, so they were unlikely to lose money.
The rise of market index is due to the increase of total market value. If someone earns, someone has to pay.