Need explanation to this play from Super Bowl LIX.

The player who hit Mahomes in the face mask was also being held. Ref saw neither of the fouls in front of him.. The penalty was for the player dunking the ball at he goal post after the fumble.