Probably has its roots from way back in the day so that women couldnt effectively run away from the men and get very far.
Can’t speak to Muslim culture, but European culture way back in the day didn’t want women riding horses because of sex.
There are a lot of branches on that tree, but the biggest one is that since horseback was believed to be capable of rupturing the hymen (hymen science has progressed quite a bit since I last looked into it, so I don’t know if that’s actually a thing), it was the same thing as having sex for women. They believed that women got sexual pleasure from it (which, I guess, was a bad thing), that they’d start craving horses as lovers instead of humans, and all sorts of weird shit that only twisted, perpetually horny dudes would think of.
So the sidesaddle was invented. It allowed women to ride horses while, literally and figuratively, keeping their legs closed.
Unfortunately, riding sidesaddle is a massive pain in the ass, so that fad didn’t last long. Maybe about fifty years or so of general popularity (because, obviously, you can still get a sidesaddle and learn to ride in it today, if you want, for whatever reason) over the course of all horse-domestication history.
Of course, like so many things from European history, this primarily applied to rich/noble people. The poor didn’t have the luxury of giving a fuck about most of it.
The tobacco execs who testified to Congress that nicotine was harmless and non-addictive didn’t get charges, either. Does that lend credibility to the claim that cigarettes are good for you?
Fuck no, it doesn’t. Because nobody has ever been charged for lying to Congress. Even when they’ve been bald-faced directly lying to Congress.