The second hand resale market for iPhone is huge, especially in Asian 3rd world countries.
It is in Apple’s interest to keep old iPhones updated, as old iPhones being in active usage is better than them rotting in a drawer.