Another way to say "a closet  is for hanging clothes" is "People hang clothes in closets."