It could be due to things like elevated levels of ammonia (just as one example) as a result of an infection.
From
this study:
"It is also possible that an initial slight to moderate increase in brain ammonia concentration by parasite's glutamine catabolic processes impairs the Krebs cycle, probably via inhibition of key metabolic enzymes like α-ketoglutarate (αKG) dehydrogenase (Cooper and Plum,
1987) and electron transport chain enzymes (Qureshi et al.,
1998). Furthermore, the carbon needed to detoxify the excess parasite-derived ammonia depletes α-KG from cells, thereby additionally affecting the Krebs cycle (Ott et al.,
2005)."
(etc., etc.)
"The lactic acidosis observed in CM may thus be largely due to
ammonia-induced crippling of Krebs cycle and switch to the lactate producing glycolytic pathway."