He's not exactly mean, just misunderstood. Hermey wants to be a dentist, not a toymaker, and gets frustrated by the pressure to conform. This leads him to act out, which some might interpret as "mean," but he's ultimately just trying to find his own path.