This would be more of a source of confusion for American listeners, but the cupboard in “Come out of the cupboard, you boys and girls” most likely refers to a kind of small walk-in closet/storeroom that is commonly attached to a classroom in a British school.