I'm curious, have you actually paid for friends to get a hotel room while they were visiting you? How did that work?
I'm trying to imagine how I'd even offer without making it awkward. I don't think I could avoid making an already uncomfortable wealth disparity even more cringe-worthy.
I think if I had to go that route I would at least rent an entire house on an AirBnb so I could stay with my friends - that way they're actually staying with me, rather than in a hotel in the same city.