We must respect the bounties of Allah (SWT) including the food and never act in any way which can cause disrespect to any bounty of Allah. Stepping on food on the ground is usually taken as disrespect which is a very bad act and it can cause bad results in this life before hereafter.
Wassalam.