As the table shows, bonds help reduce risk (years with a loss and magnitude of a loss) in exchange for a lower average annual return and upside in a good year.
However, it's important to note that bonds have varying risk profiles. T-bonds are typically risk-free if held to maturity since the U.S. government backs them. Muni bonds and corporates carry default risk if the borrower doesn't make their interest rate payment on time (or at all) or can't repay the bond fully at maturity. Muni bond risk is very low; fewer than 1% have historically experienced a default. Meanwhile, corporate bond risk varies by issuer.