Corporations have different credit ratings, just like your own personal credit score. So according to those ratings, bonds from some corporations are less risky than bonds from another. Corporate bonds are riskier than government bonds, because corporations can fail and end up not paying their bondholders.