The physical activity increases your heart rate and slightly constricts your airway passages. This causes a cough.