We learn something from them and maybe the world won’t be so complete and wonderful if such characters as Joker didn’t show off.
They usually test the order as it is, bringing a certain degree of uncertainty which has a potential to influence your own ideas as well as protagonist’s. However, such characters as Joker make the boundaries between good and evil a bit unclear. In most video games, you play for a protagonist – the main good guy – the one who fights for everything good and defeats everything evil. And well, when you meet them a bit closer and learn more about their thoughts, you usually cannot deny them being smart and logical.
Some philosophical badass characters like Joker believe that the existing world order doesn’t bring anything good. The one who tries to ruin a social order (even if he has ideals and believes that his actions will improve everything) is an enemy. Well, that is why he is perceived as an evil guy.