Humor has historically been tied to the mores of the day. The Yellow Kid was predicated on what people thought was funny about the immigrant Irish. When you're different in a society you're funny.
Yet when child sex offenders are brought to justice and serve time for their offenses they are often released into unsuspecting communities and left free to resume their sexual attacks.