Strange comment. It's like saying that the party traveling in the wilderness might be missing out on the haunted house or political intrigue that might be important to the adventure's plot or subplot.
I'm the DM. If I need wilderness travel as an aspect of the plot or subplot, I can make sure it happens. Mostly, we skip through it, especially after early levels, because I find it tedious and the players agree. The game is built so that travel times become increasingly shorter as parties level. Maybe your campaigns are different, and therefore rangers are much more useful. That's kind of my point. Different people prefer different stuff, and the ranger's effectiveness is too tied to a particular type of preference.
You can run a city campaign and barbarians will be just fine. So will druids. Rangers have always been too tied to the wilderness niche, though less so with the 2024 update.
Edit: contrast with the monk. There was pretty wide consensus that the 2014 version of the class was second rate at its intended niche, mobile skirmisher, but the 2024 update successfully corrected that (arguably too much so). Shifting the ranger from a focus on the wilderness to a focus on exploration and infiltration in general, and making it king of the exploration pillar would allow it to more strongly fill a niche..but what about rogues? So it remains a class without a strong purpose, unless the campaign happens to be strongly focused on the wilderness.