There may be a slightly increased occurrence in the groups you mention, but the main risk factor is repeated treatment
infections due to C. albicans; the antibiotic treatment
tends to select resistant yeasts, and glabrata is the most common of them.
C. albicans, glabrata, and sometimes other species are normal inhabitants of the lower intestinal tract, vagina, and/or skin. They are there all the time.