Children typically become infected by ingesting Toxocara eggs found in contaminated soil, sandboxes, or through direct contact with infected pets. Poor hand hygiene and a habit of putting hands or objects in their mouths increase the risk of infection.