Unfortunately, mold grows anywhere there is water damage. So, if your closet recently suffered water damage of any kind, chances are it has developed mold.
Whether used for storage or recreation, your basement is always at risk of mold. Water damage caused by storms, floods, and clogged gutters causes mold.