Music provides bundled distraction
When you are studying or working, you are constantly keeping out other stimuli. Stimuli are everywhere, from outside sounds to the sounds of your phone. To put it simply, distraction arises because you are not using your entire brain capacity when studying or working. As a result, your brain uses its residual capacity (the capacity that you are not using) to deal with other things. Music can help bundle all distractions into one distraction, so you can focus more on the tasks you're doing.
Instrumental works better than music with lyrics
When you need better concentration, it generally works best to listen to instrumental music. Your brain tends to focus directly on the lyrics in the music, because it thinks the lyrics are meaningful. When you are studying, it is very difficult for your brain to distinguish which text is more important. The text from your study book or the text from the music?
The atmosphere of the music must match the activity
Quite simply, if you want to go through a text quietly and let it affect you, meditation music does it very well. When you want to get a lot of work done in a short amount of time and you have to put in a lot of effort, orchestral music with a lot of rhythm works very well.