You are nitpicking. Traditional electronics have a much longer support window then even iPhones, which themselves do much better than their competition in this regard.
Apple supports iPhones for as long as they have enough resources for the new version of the OS to continue running on them.
Google does not. The fact that they only provide half as many years of support at best proves the point.
Meanwhile Apple, like most Android phone makers, don't publish the information needed for third parties to make drivers for their hardware. Which is why you can't install the latest Android on an iPhone 4. And what is Google supposed to do about that? But Apple could do something about it.