Islamic law requires that one wash their hands and feet before daily prayers, a chance to cleanse the body before cleansing the soul I suppose. Every gas station along the highway in Saudi Arabia had a prayer room with a small area to wash hands and feet attached.
The former mosque at the Alhambra Palace had a steam bath for those going in for prayers. Given the choice, I'd probably rather be in the spa.
A look up at the steam vents in the ceiling of the old bath house.