NFTs can absolutely do that. They're programmable tokens that can be coded to do anything.
When people purchase songs though the smart contract, part of the value can be automatically sent to the wallet of the person who owns the NFT that corresponds to that song.
The problem is most people, even on here still think NFTs are just some dumb pointer.