Not just hotels but houses too. There would be a slot inside the medicine cabinet for disposing razors into the wall. Dude who came up with the idea was probably like, "we'll all be dead from nuclear bombs before any of these fill up or needs to be renovated".
Dude who came up with the blades in the wall thing was also clairvoyant. He was just mostly wrong in his clairvoyance, a few details would prove to be true.
In fairness, I've never heard of one of those filling up, and it doesn't seem to cause any additional danger at demolition time since walls are full of rusty nails already.