People's suffering is almost never funny - unless, of course, it happens to someone who had it coming. Schadenfreude, the feeling of joy when something bad happens to someone, is a huge part of comedy, not without reason. Audiences have a part of them that's at least a little sadistic, and seeing bad things happen to fictional characters can fulfill that desire.