Can you explain to me why GERD would cause a productive cough?

GERD. If the reflux goes high enough or with the acid turning to gas and inhaled, there is inflammation in the airways causing production of mucous for protection. In addition the acid and the gas that goes in the lungs can cause chronic irritation and pulmonary fibrosis.