Last.fm legality

If you download Last.fm’s music player, it allows you to play complete music from any singer. What kind of loopholes did they use to make this legal?