That's the entire f-ing point of patents. It's so they AREN'T kept as trade secrets. They are granted a monopoly in exchange for publication of it. It's the same reason the only prior art is something published, not a trade secret no one outside the company could have known about.