Carbon dioxide inhibits the growth of spoilage microorganisms and delays the ripening process of fruits and vegetables, thereby extending their shelf life. It also acts as a fungistatic agent, reducing the risk of fungal growth in certain food products.