Also, our brains will encode the differences in registers to evoke emotion differently, which is often used by horror films to make a scene scarier[0]. Evolutionarily this is probably to detect screams or babies crying, a rustling bush, etc.
Speech encoding, at least per this article, has little to do with that. We don't have music encoding so much as we have pattern recognition, instinctual emotional respond to sound, etc.
Another great video about how music is perceived in animals is [1], just while we're on the topic.
[0] https://www.atlasobscura.com/articles/how-the-hidden-sounds-...