Breathing pure oxygen makes it much easier to hold you breath for longer periods of time. Before surgery, patiente may need to breathe pure oxygen in order to make sure they don't need to breathe for a will.
This is called pre oxygenation.