7% Bonds vs 7% Mutual Fund?

Pardon the newbie question.

I’ve always read that 7% is the average annual growth amount when investing in a standard mutual fund account.

Given that the latest government bonds are 7.12%, why would someone choose a riskier stock investment vs. a guaranteed income of the same value?

Is there something I’m missing?