That's a very Christian idea. Christianity is (was) the religion of slaves, and outcasts. The whole ethic is that the individual is divinely (infinitely) valuable, despite circumstances on earth.
It doesn't take much of a leap to go from "I am valuable [because G-d says so]", to "I deserve to be equal to my fellow man, free to make my own choices".