This is not limited to Apple but would apply to all smartphone producers. I would even say that Apple has to be a lot less concerned (about the update rule at least) than manufacturers of Android phones. Those are outright terrible in that regard. The oldest iPhone model that will get the iOS 15 update will be the iPhone 6s and it was launched back in 2015 already.