Anything that brings you deeper into that ecosystem, feeding the likelihood of buying another flat computer, is fair & likely game for Apple to buy or compete with. Shazam: you hear a song, use phone to recognize it[1], download album from Apple Music, ... you're a little more likely to stay within the iOS ecosystem and buy another iPhone.
[1] - Recently I stopped at a traffic light; cheap chopped car pulls up with music blaring hard edgy electronica. Something sounded interesting about it. Yank out iPhone, run Shazam, identify song before car drives off. Download album which is about...software engineering?!
Also note that apples services revenue, of which music is a part of, is large enough on its own to be a fortune 100 company.
The traffic jams in your city are 83% more awesome than the ones in my city.