Your lungs are irritated with an infection. Sometimes it can just be a flairup that is easy to treat (doing an extra treatment), sometimes it leads to more serious infection.
Why they are bad? Leads to the production of more mucus to fight the irritation and/or infection, which just compounds the problem.