Saudi Arabia is a monarchy and theocratic dictatorship. The law of this country is not made by the people for the people unlike any decent democracy. Picking up the worst example on the planet to try to make your argument look good discredits you.
Ok, so how about slavery. Or eugenics laws in the 1930s. Or Jim Crow. Or anti-sodomy laws in the US. Or women not being allowed to vote. Or like, any, of the literally thousands of horribly immoral laws that have been on the books in literally every country on the planet.