Most hotels are incredibly expensive if you need to stay for several weeks.
Most hotels are located in tourist areas, which may increase your commute if you're in an area for a specific reason.
Most hotels have kitchens for room service but not individual kitchens in regular guest rooms (though luxury suites may have them.)
Several major hotel chains (Hilton, Hyatt, Marriott...) in the US do seem to have a brand of "suites" and/or extended stay hotels that feature kitchens/kitchenettes. Marriott/Residence Inn is one example.
Hotels have had 'long stay' rates for ever.
I've lived in hotels 4 times in my life and each time the rates were around 2-2.5x what you'd pay renting directly, which was around the same rate an equivalent air bnb tends to be these days.
You usually just have to ask for their long term rate.
People living in hotels has been a staple of society for centuries, you'd better believe hotels are set up to cope. Many even have special rooms with kitchenettes for long term guests.