Could be from reflux or something similar. The lungs simply clearing themselves out. I would imagine it would be worse for a smoker or a drinker. I hold my hand up to that one. Never a bad thing to get rid of it all. May also happen if you are not fit. Don't exercise.