Extra moisture on any damp, dark place in the body—not just the vagina—can cause fungus to grow, leading to a yeast infection.