The Messenger of Allah (may Allah's peace and blessings be upon him) forbade praying in the presence of food, which the praying person craves and wants very much. Also, he forbade praying while resisting the need to relieve oneself of the two filths - urine and stool - for this causes distraction.