You're talking about every other phone manufacturer except Apple. Once you buy an Android phone, the company has no reason to support you with security updates or OS updates. They have no reason to believe that you will buy another phone from then two years later.
Apple on the other hand still makes money off of customers -- app sells, services, music, media, etc.
Apple on the other hand still makes money off of customers -- app sells, services, music, media, etc.