pyruvic acid gives energy to cells through the Krebbs cycle when oxygen is there, when oxygen lacks, it ferments to produce lactic acid that is then oxidised into carbon dioxide and water to prevent build up. If oxygen doesnt become available cells die because lactate is toxic.