Your own statement makes it clear this was about design, which sure looks like artistic freedom.

"The owner flatly refused to design a cake for a gay couple."

In more detail, the cake was for a gay wedding, not for a birthday or a housewarming or ...

At question is whether or not this was legal. But let's not obscure the debate while we ponder the issue.