Humor is the method through which intellect is passed on through the human gene pool. Being witty is one of the few ways of demonstrating your cognitive abilities that is seen as attractive to both genders (for the most part).