milk contains a sugar called lactose. it also contains harmless bacteria called lactobacillus, which uses lactose for energy and creates lactic acid as a by-product. it is the lactic acid which makes milk taste sour.