When a little curd is added to milk, the Lactobacillus bacteria present in the curd converts lactose sugar contained in milk into lactic acid.
The increased acidity in milk causes the protein, casein, to coagulate or form lumps, which leads to the formation of curds.