Walking around barefoot can be pretty safe and people have walked around barefoot for many years and never have got any diseases from doing so.
However in rare cases there is the potential of getting parasites that leads to worms inside your body.
Sometimes soil may have worms that you walk on and then those worms from the soil then transfer from the soil you walk on to your feet.
Sometimes the worms can actually enter your skin through your feet and then infect your body.
But you have a small chance of getting infected with worms just from walking around barefoot.
I used to go around barefoot a lot as a kid in my backyard and on the beach when we went to the beach.
I hated wearing shoes and I never got any worms or diseases from walking around barefoot.
You have a 1 in 99 percent chance of getting any diseases or worms or other infections from walking around barefoot.