While musicians are rarely compensated directly for listening to music, they may get royalties based on how many times their song is played on websites like YouTube and Spotify.