Grimms' Fairy Tales have a strange sense of justice. Sure, the wicked get punished—except for when they don't. Cannibals and incestuous fathers often go free, while wicked stepmothers and stepsisters almost always die horrible, gory deaths. Sometimes certain characters are punished for being overly prideful, while the protagonist also exhibits proud behavior by acting confident enough to accomplish impossible X, Y, or Z. Alternately whimsical or deadly serious, judgments and justice in fairy tales are Serious Business.
Only the deserving are punished in fairy tales. No exceptions.
Judgment, shmudgment: the tales are less about judgment than about living with the consequences of one's actions.