On a commercial range, oven, or fryer, the pilot isn't just a flame. It heats a thermocouple or thermopile that tells the gas safety valve it's safe to stay open. When that signal drops, the valve closes and the pilot goes out.
The most common cause is a worn or dirty thermocouple. Grease and heat take their toll, and a thermocouple that produces a weak signal will hold the pilot for a while, then drop it in the middle of service.
Next is a dirty or partially blocked pilot orifice, which gives a weak, lazy flame that doesn't wrap the thermocouple properly. Kitchens with heavy grease see this often.
The third is the safety valve itself. If a new thermocouple and a clean pilot don't solve it, the valve may be failing. Because these are gas safety components, this is a repair to leave to a technician, and every safety control should be tested before the equipment goes back into use.
