The answer is gravity. Due to the massive mass of the nebula cloud, the gas cloud starts collapsing on itself. Since the whole mass cannot form a single star, variations in gravitation interactions within the cloud results to formation of stars in different cloud clumps at different rates.