Well, to my surprise I have indeed met some western women who enjoyed hitchhiking through morocco alone (or together with a female friend). But they knew what to expect and were very strong women, who did not flinch by sexism and aggressive avances and could put them down.
They might have been lucky, though. A moroccan women who also hitchhiked a lot just stated, the closer to mauretania, the more rape attempts.