Prime numbers are important in music. They're actually random. Repetition of this randomness makes music beautiful.
12 has a wonderful property of being variously composable by 2, 3, 4, 6 - and one reason why it's so commonly used in music is that it's not a prime number.