Comics wouldn't be quite as good if they didn't contain terrible, terrible things happening to wonderful people who definitely didn't deserve them. Nobody actively wants them to happen, of course, but they do set up for one of the more satisfying things to happen in media, when the person who has been put through Hell finally gets their revenge.
And the more dramatic the better, as when a character you love is mistreated, the more ridiculous a comeuppance their enemy gets, the better. In a world where many awful folk do bad things and get away with them, it's almost too comforting to see a hero (or often anti-hero) carry out an elaborate act of karma on a deserving individual or twelve.
It's not the nicely tied-in-a-bow form of justice that is the ideal resolution - but when someone has tortured a child or carried out a vile misdemeanour, having bad things happen to them just feel like them getting their just desserts.
Tales of vengeance are common is just about every type of media, but comics go the most intense with the details - and that's why it's the most fun to see.