I'm not interested in googling "guinea worm" after this post, but I have no idea how this relates to the topic.
I'm pretty sure it's contracted from water, not being barefoot.
Having shoes helps stop parasites like hookworm from entering your body by being stepped on, since they can't just burrow through the skin of your foot.
You probably don't want to look up hookworm pics either; parasites are scary disgusting things.