That's not actually the case. Or it is, because it receives money from the Congress for this reason, but it is, let's say, "complicated".
The NIF was actually created for the purpose of achieving controlled nuclear fusion for civilian production of energy, unrelated to any weapons. They ran into various technical problems. Several times they projected that if they can build an ensemble of lasers to deliver xxx kJ or MJ, then they could achieve fusion. Each time they fell well short of their projections. Each time they asked for more funding for a bigger machine because "this time it's going to be different". After the end of the Cold War, the money was scarce, so they pivoted to "weapons maintenance". What weapons maintenance, you ask? Glad you asked, lots of people asked, but nobody would answer because it's classified. You can find on wikipedia [1] quotes like
> Rick Spielman publicly stated that NIF had "virtually no internal peer review on the technical issues" and that "Livermore essentially picked the panel to review themselves". A retired Sandia manager, Bob Puerifoy, was even more blunt than Spielman: "NIF is worthless ... it can't be used to maintain the stockpile, period". Ray Kidder, one of the original developers of the ICF concept at LLNL, was also highly critical. He stated in 1997 that its primary purpose was to "recruit and maintain a staff of theorists and experimentalists" and that while some of the experimental data would prove useful for weapons design, differences in the experimental setup limit their relevance.
One could say this is good news: a bit of white lies to get money from the military and spend on a worthy science project that could one day save the world. Less money for killing, more money for peace, or some similarly uplifting message.I would argue that it would be better to be honest with the people. Playing this type of games erodes people's trust in science. Conversely, the scientists that indulge in these games will end up thinking "people are too stupid to understand this stuff, we can't trust them to make the right decision. Only we are smart enough to make that decision".
[1] https://en.wikipedia.org/wiki/National_Ignition_Facility#NIF...