So those seem like backported security updates. This is different from iOS where they receive the full OS system update, including new features (unless a required piece of hardware is missing, ie. Force Touch)
To be fair to Google and Apple, the iPhone 5S has also only had security updates since 2018. They did add contact tracing features, but so did Google through the Play Store.
iPhone 5S started on iOS 7 released on September 20, 2013 and received a full upgrade to every version of iOS up to and including iOS 12 when it was dropped in iOS 13 in 2019. After that happened, Apple went back and backported security fixes to iOS 12 with the latest release in June of 2021.
Thats 6 years, 5 days of "full updates" if you consider the release day of iOS 13 to be the end of life support.
I am not, as I didn't own the device (I did own a Nexus 4 around this time). I'm going by Google's available factory images [1].
[0] https://developers.google.com/android/images#hammerhead