Firmly believe that the world would have a lot more happy bike owners if they considered the stock gearing as nothing more than a first approximation.
The dealer might say something like..
"This bike strikes me as a good fit for you overall. But gearing has a lot to do with the riding experience, and manufacturers have to pick a gearing for the bulk of a bike's perceived demographic. Problem is, that may or may not be how you'll actually ride it in your local terrain.
So, ride this bike in a representative sample of the conditions you intend to ride in — especially your local hills. If the result's not up to expectation, call me and we'll see if a simple gearing change might help."
That would also incentivize the dealer to find out where the buyer intends to ride beforehand and steer them toward a bike geared for the job in the first place.
Sheer fantasy, I know. We've purchased 4 ebikes in last 3 years, and no dealer ever mentioned intended terrain or gearing till I did.