In philosophy, they often distinguish between deontology, rule based ethics, and utilitarianism, ethics based on costs and benefits of the consequences. Sometimes explained as “the greatest good for the greatest number”. In real life we always need both, though people will argue forever over which rules are necessary and which rules are just heuristics for a deeper cost/benefit issue.
For example, a naive reading of utilitarianism might cause one to conclude that human extinction (or maybe even complete planetary sterilization) would be the most optimal outcome to strive for, as it would end all current suffering and prevent all future suffering. So we generally need to add a “don’t kill people (outside of these well-defined circumstances)” rule to our culture and upbringing to ensure moral behavior.
I would look at rights as being a similar kind of distinction. Pure democracy might be analogous to utilitarianism (everyone gets a say, and what’s best for most is what’s best for all). Or you might think of utilitarianism more like data-driven progressive politics. The data shows drinking is bad and causes all sorts of social problems, so let’s ban it. Oh, the new data says that prohibition doesn’t work and causes organized violent crime. Repeal prohibition. That sort of thing.
So under the political analogy, rights are like deontology’s rules. No matter what the data says, no matter what the majority thinks, these are things that are non-negotiable. They are explicitly or implicitly off the table.
Just for example, if we all got together and voted, and an overwhelming majority approved a measure to legalize, by anyone at any time, the rape of a certain Joe Smith of Beavertail, Arkansas, that would still be wrong. No matter what the majority says, Joe’s body is his own, and can’t be legislated upon.
Even if it were in society’s best interests, as shown through hard data. Joe’s organs in certain circumstances would be quite valuable to many transplant candidates, but we still can’t take them without his explicit agreement. We would say Joe has a right not to be raped, and a right to control what happens to his organs. We might join those rights with others under the broader category of “right to bodily autonomy” or even “right to privacy” depending on your perspective.
Does that mean Joe can’t be raped? Of course not. But we’ve collectively decided that our society can’t be considered moral or good if we just allow people to get raped. So we put significant effort into deterring, investigating and punishing rapists. And this is on a society level, not just government. So if the government did enact a “rape Joe” law, or did pass a “communal kidneys” law, we would still say Joe has a right to his own body. The government infringing that right, far from showing it doesn’t exist, actually proves that the right does exist. After all, you can’t infringe something that doesn’t exist. So rights are separate from government protection or infringement (or the government’s complete ignorance).
Of course that gives us nothing we can use to objectively determine which things are definitely rights and which definitely aren’t. Unfortunately there’s no easy way to settle arguments about rights. They’re always in flux. But I do think there’s a trend, at least over the past 400 years, towards increasing rights. That’s a big reason we write them down so often, because we like to think that once certain rights are settled, they’re settled, and we can move on to new questions, and new rights. It’s not a perfect ratchet, because rights are sometimes revoked, but there’s still a general recognizable trend.
To this day, we still have to occasionally fight for the complete right to vote, for instance. But it wasn’t that long ago people had to fight for this small group or that small group to be given a vote, and the idea of universal franchise was laughable to everyone, rich and poor alike. Does that mean ancient Egyptians had a right to vote for the Pharaoh that was always infringed, 100% of the time? I don’t know.
I also think “right,” even just in the political sense, is an overloaded term. The right to vote is not of the same fundamental nature as the right to not be raped or murdered. And what some might say is a right to healthcare services or an attorney is different still. The unifying theme is a set of rules that a culture or society in some way or another collectively deems off limits to the otherwise fickle nature of the political process.
There’s also a sense of permanence. If I am a slave, and I’m freed today, but enslaved again next week, and then freed again the following month, and then enslaved again in September, it’s clear there’s no actual protection for the right to be free from slavery. Similarly, if someone says healthcare should be a right, they’re generally saying that when accessible healthcare does get instituted, there needs to be some protections put in place to prevent the next party from dismantling the whole thing and having to do it all over again. It should be a “once and for all” kind of solution, at least in the broad strokes.