As another commenter noted, not every aircraft advertises itself using ADS-B, but the majority do - even military. I’m no expert here, but I think the distinction is that military aircraft operating outside of civilian airspace don’t need to. But some do anyway - I’ve seen a U-2 flying at 62k feet over the Southwestern US show up on ADS-B exchange. There’s no need for it to do so, as no civilian aircraft flies at altitudes that high.
In most cases I've personally witnessed (I have an RTL-SDR decoding ADS-B transmissions in the vicinity of my home) the interesting aircraft (e.g. fighters) are not operating an ADS-B transmitter at all, so there's nothing to hide. Some sites (adsbexchange.com comes to mind) do not filter anything.