Most coughing in children happens because of something relatively mild and easy to deal with, such as a cold or viral infection.
You can read about how to manage lung conditions in children here -
https://www.reetaherzallah.com/childrens-lungs-managing-lung-conditions-in-children/