The baker could always just outsource the cake to another baker willing to compromise his principles.
True. In fact, he could do this simply by refusing to do business with the gay cake-buyer without providing any reason at all for his refusal.