Say what you will about Apple (I loathe so much about my work macbook), but this seem untrue unless you have a pretty loose definition for "a few". My inherited 7 year old iPad is still getting updates, and this year's Mac OS is the first to not support Intel hardware, the most recent hardware being 6 years old.
The last 20 years we've only seen Apple enjoying the good times. What they did when the money was gushing in from every angle is not really an indicator of what they'll do in the hard times. We're getting into the hard times now, IAP revenue is plummeting because of competition for payments and a whole bag of things are impacting consumer purchase behavior.
This has resulted in positive outcomes like services have largely gone global this last quarter but it's also resulted in negatives like more ads and service price increases in many countries.
My 2020 XR still gets updates and runs every app I need- uber, school stuff, office stuff.
There’s one non-tech sister in law who won’t install signal (but is somehow ok with Snapchat) so she’s just not included on the group chats.