It's the same with conferences. Have you ever given a talk to a group of people and more than half are looking at their laptops? It really makes you ponder all of the time you put into preparing your presentation.
So do professors ban laptops because they genuinely want to help students overcome their addiction, or because the professors don't feel like they're getting the attention that they deserve?