Mix old or rotted food into your soil. Rotting food is just a sign that it's decomposing due to the bacteria that breaks down the starches and fats in the food.
The food that you don't eat can provide your plants with a boost to their nutrition. https://antiagingtreat.com/hohosiwa/hohosiwanodemerit/comment-page-24/