The purpose of the library is reading, and there are few distractions and people in the whole environment. Neat bookshelves, tables and chairs, and rich books itself exude a solemn atmosphere.
But in the dormitory, because it is so convenient and comfortable, the cost of switching between different tasks is very low, so it is easy to be distracted to do things that are easier and more labor-saving than reading.
Suppose you feel hungry when you are studying, you will take out snacks on the desk in the dormitory and plan what to eat for lunch while eating. If you are in the library at this time, you will tell yourself to read what you plan to read before you think about eating.
Going to the library to study and seeing that everyone else in the library is studying hard, it is easy to be influenced, as if I am sorry that I am not diligent.