Organization purposes. The entire purpose of religion is to organize people under a common belief. If everyone prays to random directions, its all chaos. Religion is all about maintaining order. It might not make sense now we all live in very sophisticated, organized societies, but we came from anarchy, and religion is derived from the fear of said anarchy. All civilizations have had some form of religion in common.
Islam came from a very tribal, disorganized place where everyone pretty much did as they pleased, especially the stronger. And so Islam has rules for everything to avoid specifically that.
You clearly have an unhealthy obsession with Islam, judging from your past comment history. I thought I was talking to just someone with an interest in sociology and origins of religion, my mistake.
And yes, all religions were pretty much popular revolutionary movements designed to uproot hierarchy in their beginnings. That changed as they became the hierarchy. I don’t know how you imagine the 7th century to be like, but it was a world full of warfare and women had more or less no rights.