No, what she says fits. Coming "out of the closet" is related to homosexuality, etc, but coming out the cupboard is better fitting to a Harry Potter fan because Harry used to live in the cupboard under the stairs. Apparently yall didn't read the books. You can say you're coming out of anything and it'll still mean you're revealing a secret. There's nothing wrong with that phrase.