Young worms hatch from their cocoons in three weeks to five months as the gestation period varies for different species of worms. Conditions like temperature and soil moisture factor in here if conditions are not great then hatching is delayed.
Because although one organism is harmed, the other benefits. So the organism that benefits won't stop the action that is harming the other. Hope that makes sense!