Humor is often used in speeches to engage the audience and make them more receptive to the speaker's message. It can also be used to lighten the mood and make the speech more enjoyable. In contrast, humor is less commonly found in written essays, as it can be more difficult to convey in written form and may not be appropriate for the tone of the essay.