Also, the bakery did not refuse to sell them a cake. They refused to decorate the cake in the way the customer asked.
Bakeries refuse to decorate cakes in a requested way all the time. Because the request is lewd and crude, violates copyright law, etc.