When the air we breathe contains germs, our immune system protects the respiratory system from infection. Sometimes germs can get past the defenses of the respiratory system causing whooping cough.