Children can contract VLM by ingesting soil or substances contaminated with the infectious eggs of Toxocara species. This often occurs through hand-to-mouth activities, especially in playgrounds or sandpits where dogs or cats may have defecated. After ingestion, the eggs hatch in the small intestine, and the larvae penetrate the intestinal wall, migrating through various tissues and organs.