Sounds are an auditory output of the game intended to communicate the happening of certain events. Different objects like mobs, weapons or blocks have sounds.
Recourse (or in this case), music packs do exist that can be added just like any recourse pack. You can access the music in minecraft by going into your files and going in .minecraft and then to resources (.minecraft/resources). Note that this is only through the Java Edition of Minecraft.