Bear in mind that Apple keeps 30% of App Store revenue, which is tens of billions of dollars a year. If they just sold the hardware they wouldn't care at all how much users use it, but if users are on their phones for hours on end it's more likely they'll spend money on apps.
The addictiveness of smartphones isn't a "byproduct" of these devices. It is the product.