While “Shazaming” has been seen as good for music discovery, speculation is that Apple didn’t care so much about that infrastructure (it’s been built into Siri since 2014). It was the historical user data that was most important in the purchase.
Source: Why Does Apple Want Shazam?