We have always had gross humor. But we try for funny not gross.
Humor results when society says you can't scratch certain things in public...
Survival in the cool economics of biology means simply the persistence of one's own genes in the generations to follow.