Apple Shazam: Why is the US company buying the music app?

Rivalry against Spotify and augmented reality ambitions are two possible reasons for the takeover.