They don't "last for a long time". I have an ipad that is barely five years old and no longer receives OS updates. You can't even install apps on it (like Netflix, or Youtube) because the OS is "unsupported."
Apple is running a HaaS (Hardware as-a Service) and your subscription is somewhere between two to three years.