If the bakers were just signing letters saying they opposed making cakes for gay people, but not actually refusing, then there’d be no public interest in demanding their names be uncovered.
If they cannot justify their speech to the public, there is probably an issue with what they said.
You mean like when several of the US founding fathers published the Federalist Papers anonymously?