Nitrogen gas is used in chips packets because it controls the Oxygen reactivity.
The agents called antioxidants prevent oxidation of oils and fats in food.
Nitrogen is often filled in chips packets to prevent rancidity as it is not too reactive with either oils or fats of chips.