The hardwiring has developed over millions of years, with successful responses surviving and unsuccessful ones being weeded out of the gene pool. Consider it a self-reinforcing loop.
I would say we don't "want to survive" we want to satisfy various urges: hunger, breathing, comfortable temperature, sex etc.
Survival is a by-product.