Sodium nitrate (NaNO3) and its close relative sodium nitrite (NaNO2) are preservatives that you find in lots of processed meats. Stuff like salami, hot dogs, pepperoni, bologna, ham, bacon and Spam all normally contain sodium nitrate as one of the ingredients. Fresh meats generally do not contain any added chemicals, so the question is, "Why is sodium nitrate added to all of these processed meats?"
There are two reasons for adding these chemicals to processed meats:
- They preserve the color of the meat (meaning that it looks pink like Spam rather than gray like cooked hamburger). You have probably noticed that nearly all meats that contain sodium nitrate or sodium nitrite remain pink or red even though they are cooked during processing.
- These chemicals inhibit botulism to some degree.
The jury is out on how harmful these substances are. Sodium nitrite reacts with stomach acid and other chemicals in the stomach to produce nitrosamines, which have been shown to cause cancer in animals when consumed in large quantities. However, there's not much sodium nitrate/nitrite in meats, and we consume sodium nitrate/nitrite from other foods as well, so it is not clear that they are harmful in the quantities we get from meats. Some people recommend that small children and pregnant women avoid these chemicals altogether just to be safe. Since neither canned chicken nor tuna have any redness to protect, they generally do not contain nitrates.