To be fair, most places everyone has the same rights as each other now. It's society that's still behind the laws so we have to make unequal ones to force equality in society.
Laws don't change the way society thinks and behaves. Not for many generations later in some cases.