Your argument ignores the fact that the baker was already operating under a contract with the City and State, in the form of his business license. His discrimination against that couple was in violation of that contract. Your argument would only be valid if the baker was not operating a business within the relevant jurisdictions.