>>13230929leftover probably from before we were even monkeys. Birds are by far the most notable user of musical rhythms and harmonies. By creating an audible pattern its easier to recognize the source of the sound, especially in a world thats often full of random chaotic noises. Consequentially because of this, you can identify friend, foe, or potential mate just by the sound they make.
While eventually we evolved to use language and leave behind primitive vocaliziations, some of the lower level structures still remain and are probably used during speech. But that doesn't change the fact that those low level structures were originally used just to find patterns and harmonies in sounds. Also more contemporarily, hearing music can lead a wandering human to home or rescue, and being able to make music together is an easy way for groups of humans to practice cooperation. This definitely influenced tribalization in early humans.
Soooo que the modern day intelligent humans that are obsessed with consuming and tickling their brain any way they can. The simplicity/mathematical beauty of music hits us on a more primal level and thereby has a stronger subconscious effect on us. Hence why we like it so much. Truly in modern day music is just an evolutionary leftover, a relic of a tool used by younger humanity