There is an elastic flap at the starting of the wind-pipe called epiglottis which opens whenever we breathe in air and closes to prevent the entry of food into the respiratory system.
While eating in hurry, due to lack of coordination, the epiglottis opens to take in air but food too enters in causing us to choke.