This got very rare, even for the Nexus devices. The Nexus 5X got only a little over 2 years of feature support, and 3 years of security support, which is the minimum they guarantee.
I will grant shitty devices like the 5X is something that happens slightly more often with Google devices than Apple (although the Macbook pro keyboards kind of brought parity).
I still think for the layperson consumer, apps continuing to work even if they are not being actively developed is a bigger deal than continuing to receive constant security updates, from the perspective of device usability past 3 years at least.