Original: This is the result of fermentation, where lactic acid bacteria ferment the lactose in the milk into lactic acid.
Simplified: Fermentation makes this happen. Lactic acid bacteria changes the milk sugar into lactic acid.