Most importantly, it introduces equality, that is lack of discrimination, which is always a positive thing. Discrimination can introduce social tensions and violence, and equal treatment is one way of inhibiting it.
Also, it introduces stability, as people can rely on the the fact that they can know how they will be treated and that they will be treated fairly.