This phrase means that when we use humor, it helps to distract us from our problems. It does not matter whether you purposefully intended to use humor or not, either way it can help us forget about our worries for a moment and make us feel better. Humor can be made intentionally, but it can also occur organically in the moment.