Bonds are relatively stable and are used to protect capital. If the market is weak, buy bonds. At least you won't lose too badly.
Because bonds have stable returns, bond funds generally rise.
Stocks have relatively high risks, and high returns are also high risks, so they are uncertain.
Which one to invest in depends on your personal risk tolerance.