We tend to ask.

We've done alot of bike trips and staying at hotels, motels.

99% of time either in rm. allowed or a secure area is provided by hotel. It may be abit awkward but not impossible.

In Copenhagen now: Our bikes are in a conference meeting area which is currently unused. They are double locked to one another.

In Karslruhe, Gemany: in an inner courtyard. Bikes double-locked to one another. Area was near front reception where it was always staffed. Guests had to ask for their rm. key each time they were instructed to leave with reception when leaving hotel for a few hrs.

In Freiburg, Germany: in a near medieval like basement that was retrofitted but had locked door for bike storage areas.

In Cesky Krumlov, Czech: in a storage supplies area of a store owned by hotel operator. We had to be REAL careful not to knock over retail figurines. They had another couple with bikes too. So 4 bikes in store. Store is staffed when open all the time. Their hotel staircase was too narrow.

In Strasbourg: in our hotel rm.
In Prague: in our hotel rm.

In some places, the staircase or elevator is just too narrow, so a cyclist just has to deal with hotel's options. Particularily true in Europe or heritage buildings.