The Room of Requirement appears only when someone is in great need of it. Its function and interior change based on the desires of the user. For example, it becomes a place for Dumbledore's Army to practice spells away from prying eyes.