What I don't get is why the heck are the astronauts willing to risk their lives on something they must know by now is so dangerous? Is it really better to risk death than to risk getting fired?
> why are the astronauts willing to risk their lives
There are a lot of funerals in chapter 1 of Tom Wolfe's book, "The Right Stuff".
I suggest that some choice of profession come with a higher life-risk tolerance than others. "Accountants willing to risk their lives for the job" would be news. Firefighters, less so. Test pilots or astronauts, not much at all.
To be honest I don't know how close to non-fiction "The Right Stuff" (book or film) was but if you watch it you'd maybe gain an understanding for why astronauts do these things. At least that part is believable.
This degree of lifespan-maximization is something you might have but others don’t necessarily share. E.g. old people went to Fukushima to sort it out. “Was it really better to risk death than to risk getting fired?”
Neither of these are major risks compared to never being what you want to be.
Some people go to war for the thrill of it, others do base jumping, free solo climbing and whole lot of other activities that eventually kill many of them. It is in their genes.
There aren't many people left who've been that close to the moon. Lots of people would love to be on that list.