In society not everybody is equal, however in societies with rule of law, the idea is that everybody is at least deemed equal under the law. That this unfortunately often fails in practice is very different from explicitly and intentionally having separate rules