iOS devs on the other hand often only support the newest version of iOS, so if your device doesn’t get new OS updates any more, you can toss it.
And the newest versions of iOS only run smoothly on the newest iPhone hardware, so if you want your phone to keep running quickly and smoothly you have to keep updating to the newest hardware. Planned obsolescence in action.