Reminder of the recent "The truth that haunts the Ramones: 'They sold more T-shirts than records'":
Most small-medium time artists can't afford to front all the expenses. If no one buys the records, no record company will give the band an advance. Even if most records don't really generate any direct profit for the band, getting the production bankrolled is a pretty big benefit.