The government isn’t that great at secrets.
They disclosed their stealth bombers after a time - and those were also seen before disclosure.
There’s being capable of a thing and the fear that instills in people it’s used against. There’s also displaying a large sword deliberately. Governments in general love having moments where they wow their adversaries.