What is the bag for on a passenger oxygen mask?
Oxygen in passenger masks is either generated by oxygen generator or released from pressurized container via reduction valve. In either case it is released at fixed rate. But human breath is discontinous. So the bag acts as a buffer. You inhale the oxygen accumulated in it and then it slowly refills while you are exhaling.