nitrogen gas is often usedfor food packaging is to provide a pressurized atmosphere that prevents package collapse. Using N2 gas in this way helps ensure that more delicate foods, such as chips and crackers, won't get crushed in the bags where they're stored.
Moisture inside of packaged food invites unwanted bacteria, mold and mildew, which is why Nitrogen is used to displaceOxygen and lock out moisture.