The philosopher Immanuel Kant said that rational human beings should be treated as an end in themselves and not as a means to something else. The fact that we are human has value in itself. If a person is an end-in-themself it means their inherent value doesn't depend on anything else - it doesn't depend on whether the person is enjoying their life, or making other people's lives better. We exist, so we have value.