Water, and especially hot water was a precious commodity before the era of hot water heaters. In Morocco a practical solution was created to get around this difficulty.
The hammam.
On entering you will pay someone, usually a woman at the entrance. If you want to bathe yourself it’s 10-20 dirham, if you want to be scrubbed it’s about 50 dirham.
You’ll want to remember only to use your water buckets. They’re filled by spigots in each room and that can mean a wait at times if the hammam is busy.