I have always been into music of one kind or another, but just lately, I have been thinking about it a lot, probably the result of trying to learn to play the fiddle. Just imagine if you were talking to a visitor from another planet, a planet where music did not exist. Suddenly music starts playing on the radio, and the visitor says "What is that noise, what is it for?"
You could reply that the purpose of music is to give people pleasure. But it is not that simple. Most of the things that give us pleasure exist as part of a survival mechanism. The purposes of having sex, or eating and drinking are obvious. Some people enjoy exercise, but it has health benefits. Music alone amongst our pleasures seems to serve no purpose other than pleasure.
And there are other things that are odd about music. Much western music is based on the eight note scale. But in a way, the five note scale is more universal. Known as the pentatonic or blues scale, it seems to have been discovered or invented in civilisations that are widely separated and have no communication between each other. It is a "free sort of scale, in that you can play it over a chord progression, and you can play the notes in any random order, and it will still sound "right" or melodic. Hence the "blues solo".
In a sense music is the universal language. During World War Two, the song "Lily Marlene" was a popular song with both the Axis powers and the Allies.
Some religions embrace music, and some forbid it. Even the mathematics behind music are weird. When a technician tunes a piano, he carefully tunes it to a mathematical formula. He then puts it slightly out of tune by a set amount. This is called tempering.
So let us all enjoy whatever music we choose. No one type of music is "better" than any other . If you enjoy it, it is serving its purpose.