Coughing in dogs can be caused by several factors, including hairballs, respiratory infections, allergies, heart problems, or foreign objects lodged in their throat. It's essential to consult your veterinarian if the cough persists or worsens, to properly diagnose and treat the underlying cause.