This quote is saying that people who have a great sense of humor are usually smart. Having a sense of humor requires a great deal of creativity, cleverness, and intelligence, so it makes sense that people who can make others laugh with jokes or funny stories are likely to be quite intelligent.