Apple isn't just "a retailer", and regulators seem to agree. Also, Google provides seven years of updates for their current Pixel devices.
What about all of the other devices it sold in the last decade.
And Google only sells a tiny fraction of Android devices. What about the other literally 97%
Microsoft hasn’t had a problem keeping PCs updated that it doesn’t sell for a decade. Heck I got Windows updates for my pre-Bootcamp x86 2006 Mac Mini for years after Apple abandoned it