How can fungus in your toes grow?

Fungus. Likes dark, wet, moist areas your feet, toenails in socks and shoes are a perfect breeding ground for the critters.