(a) Anaerobic respiration in the muscle cells.
Glucose⟶Lactic acid+Energy
(b) During the sprint her muscles needed energy faster than her lungs and blood could deliver oxygen. The shortfall was made up by respiring anaerobically, and that left lactic acid accumulating in the muscles.
Stopping running does not remove the lactic acid. Breaking it down requires oxygen, so she goes on breathing deeply to take in the extra oxygen that job needs — she is repaying the oxygen her muscles went short of during the race.
(c) The difference is whether the oxygen supply can keep up with demand.
A marathon runner works at a pace slow enough that the oxygen arriving through her breathing and circulation matches what her muscles are using. Her muscles can therefore respire aerobically the whole way:
Glucose+Oxygen⟶Carbon dioxide+Water+Energy
Glucose is broken down completely, which releases far more energy per molecule, and — the point here — produces no lactic acid. With nothing accumulating, there is nothing to cause the cramping.
A sprinter's demand is so sudden and so large that no possible oxygen supply could match it, so part of her respiration must be anaerobic. The cramps are the price of that.