Poorly processed foods
The second reason a can swells is the result of poorly processed food. Before it’s canned, food needs to be sterilized to remove all the potentially dangerous microorganisms– especially those that can live inside a can without oxygen.
If some of these organisms are left behind, they can thrive in the can, spoiling the food and giving off carbon dioxide gas. In this case, carbon dioxide causes the can to swell.