I often wonder why defense companies openly advertise their failures. Maybe it's for optics.
Another reason is to highlight the need for more funding. "We obviously need more money to run even more tests".
It's a very strong message. It's also propaganda, to control the narrative, distract and deceive.
Maybe they already know it's a dead end, or this is a test bed for something else. The cancelled rail-gun seemed like a giant materials science project, but maybe the Navy got _exactly_ what they needed.
If you commit a crime and tell the whole neighborhood that someone else did it, they are less likely to suspect you.
E.g. Putin calls Ukrainians neo Nazis even though he is acting like a Nazi.