Hotels don’t make money if you stay in the room, it actually costs them money in terms of electricity. But they do want you to spend money so they might indeed do things such as banning outside food deliveries or making the basin un-pluggable so that you can’t do your own laundry.
There was a case a few years ago where a Marriott got fined for blocking outside wifi.
https://www.theguardian.com/us-news/2014/oct/03/marriott-fin...