You can get infected with whipworm by accidentally eating whipworm eggs on from your hands that have been in contact with soil contaminated with whipworms from eating food containing whipworms.
Understanding Parasitic Roundworm Diseases