The Muslims call the ablution ritual "taharat". It includes washing the genitals after using the toilet. Not only Muslims, but others can wash themselves for hygiene purposes.
If they go straight into the toilet stall with water, then it is possible to wash themselves. For example, Muslims are not allowed to use toilet paper.