Why is Downloading Music Illegal?

Downloading music is illegal in some cases. The artist or record label wants to profit from the music. So when you download for free, they are not getting paid.