The problem is that the judges often use their decisions to campaign instead of simply applying the law. So they might give an unpopular criminal defendant a harsher sentence to look tough on crime or even tilt a trial against an innocent defendant. Not that doesn’t happen with judges that are appointed by the executive, but it’s usually not as bad.
Via the Brennan Center. Elected judges are more punitive and more likely to rule against defendants.