The main point of the second floor is to hold the dorms of the students. Dorm keys are required to enter dorms, which you can recieve the first day at the table in front of the headmaster's office.
For some, it's a double, a hangout where you can pretend to study. For others, it is a place to read and study. The library is at the very end of the second floor hall.