I think a lot comes from having the experience of doing stand-up comedy. It allows you to figure out the psychology of an audience; what things are funny and not.
I'm not on all the time. I like to have fun and be funny, but I'm much more of a thinker.