Siri has been able to identify music (I believe using Shazam?) for 3 - 4 years. I suspect they were shopping themselves around, and Apple wanted to own the technology enough to give them their asking price.
[0] https://www.xda-developers.com/google-pixel-2-now-playing-so...
The pixel does something very different : it automatically tries to identify what is playing right now and writes the name of the song on the lockscreen.
It might seem to be gimmicky but I have found myself really liking this feature.
I use Siri a lot, I’m not a Siri hater. But I don’t think this feature has ever worked when I tried it.
"Siri, name that tune"