That's the thing. Apple has that track record already. This years iOS update will be available for phones released as far back as 2017. And that's not a recent development - 4+ years have been the norm with iOS devices for a long time, while many Android phones have suffered from much faster obsolescence.
Google have yet to prove that they can fulfill this promise.