Lactobacillus (lactic acid bacteria) thrives in an acidic medium and the milk sets into curd easily. If the milk is slightly alkaline, lactic acid when produced is first neutralised by the added base, which is baking soda here and, it takes a longer time for the curd to set.