They're not. Commands, commandments, laws, they are biblical. Rights aren't.
That's totally fine. Rights come from moral philosophy, where they are the best way for us to formulate a theory of morals that's independent of religion.
Morals here means it's someone else's life, not yours, so...