True. I considered clarifying, but didn't to be concise. I think publication as a reasoning for granting patents is superseded. It's mostly relevant to the history of patents, not the present.
You can't be secretive about a UI, or the chemical composition of a drug.