That's a strawman if I ever saw one. If you don't provide ID to the hotel they may refuse sell you their services.
If you don't provide ID to the police, however, that's another issue altogether.
The poster is probably just trying to build a cases tree. "What if I will not have electronic devices to buy prescribed medicines? // Then you will probably present a paper copy of the presctiption // Will it be allowed tough?".
In some countries/cities it's already mandatory to provide ID when booking.