Because thats when you're tired, and your breathing becomes naturally depressed and more shallow when you're tired, meaning that you dont clear the secretions in your throat as effectively by the very action of 'good' breathing. Instead, the secretions build up more quickly, causing you to cough more.