If you haven't taken regular exercise in a while then this can sometimes happen. The normal mucus in your airways becomes loosened with exercise and it is natural to cough
it up. If you continue to exercise over the coming weeks then this will reduce until it no longer happens. It is not serious.
Dr K A Pottinger