A stock is a slice of ownership in a company: you share in profits through dividends and price growth, and you rank behind everyone else if the company fails. A bond is a loan. You lend to a government or company, receive interest, and get the face value back at maturity if the issuer pays. U.S. Treasury securities are backed by the federal government, so the question with them is less default risk and more price swings and inflation.
That structural difference explains the usual pattern: stocks have higher long-run returns and far bigger drops; bonds pay steadier income and cushion a portfolio, but they can lose real purchasing power when inflation or rates jump.