As Jacob Milgrom (JPS Torah Commentary: Numbers [Philadelphia: Jewish Publication Society, 1990], p. 166) points out, the text reinforces that this action of Moses “was aggravated because it was witnessed by all of Israel.” Hence the punishment Moses receives.