Expectorants are used to treat the symptoms of respiratory tract infections. These types of infections include the common cold, bronchitis and pneumonia. These infections can cause a buildup of mucus in your throat and lungs. You may develop a cough and your chest may hurt due to mucus accumulation.