Why do we cough? Coughing is a defense mechanism of the body that helps to eliminate irritants from the respiratory tract and to protect the lungs.