You seriously didn't think that the students only had a nice and comfortable bed to sleep in. The staff of Hogwarts each have there own room some have passwords and others trust the school. But be sure to ask for permission to enter the room no one likes an intruder.