A sourdough starter is a symbiotic ecosystem. Lactic acid bacteria (LAB) produce acid that lowers pH. Yeasts produce CO2 for rise. After each feeding, fresh flour provides sugars that restart the cycle. The pH swings between 3.5-5.5 as organisms compete and cooperate.