Apple continues to offer support for their devices and continue manufacturing them, On Samsung once newer models comes out they stop manufacturing the older ones which devalues a product. Apple also offers 5 years of device support, you can still easily get original parts for a 5 year old phone.
That’s Apple for you. After all these years of keeping their products the same prices for years and not having sales they’ve estsblish them selve’s as their have a higher market value for no apparent reason just like digital skins in games.