You have to follow this rule in all classrooms, the library, and even during lunch breaks in the cafeteria. The official rationale behind it is fairly sound on the surface: to prevent distractions, curb cyberbullying, and stop cheating during exams.