Morning cough

Why do I wake up with a bad cough every morning? I am a smoker and I understand it's bad for you but I don't know why I would get a cold from it