Humor has historically been tied to the mores of the day. The Yellow Kid was...
Religion is a search for transcendence. But transcendence isn't necessarily sited in an external god which can be a very unspiritual unreligious concept.