Frogs are amphibians. This means they need both land and water to survive. Frogs breathe in air and fill up their lungs. This is how their system obtains oxygen.
Oxygen is needed for the Krebs Cycle to operate. Without this, only lactate can be produced from glucose (this is called anaerobic respiration) yielding about 1/10 of the energy.