That song by Randy Newman includes the line “You give me reason to live.” As the reader knows, the song is the expression of one in the throes of a sexual romance.
Ayn Rand writes “My morality, the morality of reason, is contained on a single axiom: existence exists—and in a single choice: to live” (AS 1018). The moral is correct value that is chosen and understood, in Rand’s view.
Animal consciousness has the function of preserving life of that sort of animal. For humans the feature of rationality in consciousness has the function of preserving human life.
It would make as little sense to speak of a goodness preceding the occurrence of life in the universe as to speak, in general metaphysics, of any features at all beyond existence. That said, the makeup of existence by its traits differs from the makeup of life by its ends-seeking traits. The unity of ends-seeking parts to the whole that is a living thing is unity of a different order than unity of sodium and chlorine in salt. Among ends-seeking traits of a living thing are an ensemble of them necessary for making up that particular species of life and its individuals. Paramount among such traits for human life is rational consciousness.
We can have rationality before knowing what it is and knowing we have it and that one can modulate it. We can experience sexiness in human life before knowing about reproduction and psychological cravings for sexual romance and biological function(s) of those cravings. We can be choosing life and rationality before knowing much about what they are and much of why they are good to choose. Before knowing one could and should not remove one’s living activity that is rationality. Before knowing one has been making life continue and directing choices to that end. Including dancing in celebration, inspiration, and worship of that end.
Coming to know one can choose to end life, one comes also to know one can choose to continue life, along with its requirements, as one has been doing heretofore less consciously. Now one is four-square in choice to live or die as a moral choice, that is, choice with understanding. In some circumstances, choosing to end life is the morally right choice. Decision for that alternative will have in mind also the other alternative, and its requirements, as precedent and surround in that human life.
In choosing that there be life, we can have rationally chosen that there be value, a value-occasion, but not what are the requirements of value, which is something not open to our choice (to borrow from Nozick 1981).