At work we have a place to lock up our bikes out of the rain, but it’s on wall mounted racks.
Many bikes are too heavy to lift safely onto them or too long/have designs that make them impossible to hang from wall mounted racks.
Also, some people that ride bikes are unable to lift them onto wall mounted racks for various reasons either temporarily or permanently.