Google maps offers this functionality. I've had my local map and maps of any place I regularly go to downloaded for many years.
Google Maps also doesn't support offline contour lines / hillshading (what Google calls "terrain"), which is a big deal for hiking and other outdoor activities. Whereas with OsmAnd, you can literally have e.g. the entire North America in your pocket, with contour lines, offline navigation, and offline Wikipedia articles for every POI.
I went to Grenada in 2014 and used offline maps to drive around the island. In 2015 the tablet suffered an accident and I powered it off to deal with it later. 5 years later I power it back on without internet connectivity. Turns out the maps expired. So much for many years