Makoto Wada has said that Mario's appearance as the game's referee was never meant to be. He placed the character in the place of the referee without approval from higher up in the company, and when it came time for final testing, no one said anything about removing him and he was left in.
Contributed by gamemaster1991