When the economic situation is good, people may make more money by investing in stocks, and bond funds may not perform so well at this time.
When the economic situation is not very good, or when the economy is in crisis. If the company's performance is not good and the funds are guaranteed to return to the bond market and other markets, then the performance of bond funds will be good and the performance of stock funds will be poor.
But they are not absolute, and there are many factors that affect them. For example, inflation and war will have some effects.