Answer
The main purpose of flushing Nitrogen into food packets that contain oil and fat items is to prevent Rancidity which occurs when the oil or fat reacts with the oxygen letting out an unpleasant smell and taste. Therefore, by flushing Nitrogen, an unreactive surrounding is created, thus preventing rancidity.