Display related terms from a taxonomy in an entry

Please specify where are you using the code above, if in a template file or in a function.
Assuming the code above is for a single post and that you’re trying to retrieve the dormitorio terms associated with that post you should use get_the_terms() instead of get_terms().

get_terms() Retrieves the terms in a given taxonomy or list of taxonomies

whilst

get_the_terms() Retrieves the terms of the taxonomy that are attached to the post