Those are the oldest phones which still get new versions of iOS.
My mother has a 6, and it still gets security updates for (IIRC) iOS 11.
It's her second 6, by the way. The battery on the first one started inflating, and they replaced it with a refurbished unit for the price of a new battery.
No other company plays in the same league as Apple when it comes to product support.