This is a pretty common finding in infections of the upper airways. There is a small vessel that probably bleeds during the night and drains down the back of your throat when you are sleeping. You cough in the morning, clear this out and are fine the rest of the day. Drink lots of fluids and hopefully, if this is a viral infection, it will go away with what you have been given.