Why shouldn't students listen to music in class?

Students should not be able to listen to music in class because the students would pay more attention to the song they are playing more so than the teacher talking.