Rights don’t exist. They are social conventions based in law. If you don’t have a law or the law isn’t enforced then you don’t have a right.
That's your opinion which was a minority one in most of the world for most of history. Including such counterintuitive parts of it as China.
Contrary to the name, there are no basic, inalienable human rights.
Says who and based on what?
If your right is not supported by law, it does not exist.
And from which hairy arse would a law gain justification to determine someone's rights?
You are likely from one of the countries with English-derived legal system, where the precedent mechanism literally means that there are non-codified rights outside of the law, which the interpretation of the law has to approximate.