In the context of lung cancer, a chronic cough can occur due to the tumor obstructing the airways or causing irritation. Tumors in the lungs can lead to inflammation and fluid buildup, which trigger the cough reflex. Additionally, cancers that metastasize to the lungs can also cause chronic cough.