The body makes phlegm and mucus to line the tissues, protect and moisturize them, and trap potential irritants and germs.