Sometimes when anyone eats hurriedly, talks, laughs or does another similar activity while eating, the flap such as valve, epiglottis closing the passage of windpipe remains open. Thus, the food may enter the wind pipe and coughing helps to clear it.