Another way to say "a bedroom is used for sleeping" is "A place where you sleep is a bedroom."