This question already has an answer here:
- What does Minecraft's scary music mean? 5 answers
A couple minutes ago, I was mining in minecraft and then there was about ten seconds of creepy music. Whats going on? I'm freaking out!
Incorrect, this sound isn't a soundtrack, but rather an ambient sound, a sound that's played when you're exploring the wild vast lands of Minecraft.
From the wiki:
The Jukebox plays only custom tracks from discs dropped from Creepers. Ambient sounds can be played whenever you're near a dark cave, but not when you're using a jukebox. Some people may think that it's a music track, Track 13, which is creepy enough, but not the "ghostly" creepy kind you hear when near a dark cave, which are the ambient sounds, as I mentioned above..
There are also a total of 13 ambient tracks that can play at any time.