According the Wikipedia, the iPhone 4 got only 4 years of updates (released in 2010, last update with iOS 7.1.2 in 2014). And Apple was still selling it in 2015.
That's maybe the worst example but it illustrates the difference between "typical" and a guarantee.