When the food items are kept for a long period, the fats and oils present in them get oxidised and their smell and taste change. They become rancid and so the process is called rancidity.
For example, rancid (decaying) flavour or smell in old cooking oil.