A
closet (especially in
North American usage) is an enclosed space, small, and is most likely not bigger than a garage, or basement, etc. so to say this, a closet in North America is about the size of a cupboard and no bigger. Rooms like the attic, basement, and garage do not apply to be a closet. A
cabinet, or a
cupboard in a
house or
building are used for general storage or hanging or storing clothes.