How does the human body create so much damn mucus when you’re sick?

I mean honestly, where does it all come from? Are we even taking in enough sustenance to create it all? Or does fat and muscle just spontaneously sublimate into mucus form when it comes in contact with the common cold virus?