It gets Android OS feature updates not security/firmware updates. GOS aims to be the most secure OS possible without compromise so they aren't supporting devices without them.
Pixel 3a only offered 3 years of security updates. Current GOS supported devices support up to 7 years.