Spotify Codes and QR codes are not the same thing
Spotify has its own scannable tag called a Spotify Code: a row of bars next to the Spotify logo. In the app, open the menu on a song, album or playlist and choose Show Spotify Code. Spotify also makes high-resolution versions at spotifycodes.com.
Spotify's code site says these codes are read by the scanner inside the Spotify app. So the person needs Spotify installed and has to know to open it, go to Search and tap the camera.
A QR code is read by the ordinary camera on any iPhone or Android phone. It opens a normal Spotify link, which goes to the Spotify app if it is installed and to Spotify in the browser if not.