iPhone XR/XS that were released in 2018 indeed can't get the latest iOS (26.) The good thing is that security updates for the previous iOS versions (18, 16) usually roll for a year or more. Currently, iOS 15 (from 2021) is the oldest version still receiving updates (15.8.5 was released a month ago) and the oldest devices capable of running that are from 2015.
Probably more relevant here is MacOS 26 doesn't support anything before 2019 either. And it's not because they dropped x86 support entirely, it still supports some Intel Macs. Just not many.
Not aware of this, and actually, it seems like the contrary. Apple repeatedly deprecates stuff and makes users and developers dance around a rather quick, and very unreliable software deprecation cycle which makes it terrible to do anything long term on Mac.
Plenty of examples for this. Just ask around.
A 2017 MacBook Air can only run MacOS 12 - which was unsupported last year, giving a total of seven years of support. Yes, you can run OpenCore Patcher if you want to stretch the definition of support.
Apple seems to get a lot of praise for long term software support and the latest iOS doesnt support hardware released before 2019 as far as I can tell.
In fact Linux is probably the only major exception to this, and if you need commercial support for 10+ year old hardware it costs $$$$