The origin of the will to live is that without you die.
That requires intention - consciousness - decision making - and yet even molecular machinery will struggle to survive after an insult to the physical brain, plants struggle to survive, amoeba etc.
What is the origin of the will to live - or, if you wish to skip ahead, to die?