That analogy would apply if the loss got people in the door, but they bought SOMETHING ELSE that ensured profits. For example, in this case if free music got them onto Apple's platform (loss) where they then bought a bunch of apps (unrelated to music and the source of profit).
For anyone who doesn't know, a loss leader is something advertised like bread for 50 cents or something, where the store loses money on each and every sale. It's a customer acquisition cost, and the goal of this is to "lead" with the loss, get people in the store, and there they will buy not only bread but anything else they need at the time, at normal market prices. Normal market prices give enough profit to offset the loss taken on the "lead." This works because people don't just go to a store and buy the one marked-down item and nothing else. (Or more specifically the extra profit for people who buy other things after only coming in due to the loss leader, covers the loss on them, and on everyone who only gets the loss leader.)