Corporate bonds generally carry a higher risk compared to government bonds. The spread compensates investors for the additional risk associated with potential default by the corporation.