The bible says no such thing. It doesn't have to. He was a Christian who was against gay marriage. They wanted things written on the cake that supported the idea of gay marriage and he didn't want to condone it, but he said he would bake them a cake with no such messages written on it. He was perfectly within his legal right to do so and the Supreme Court agreed with a vote of 7 to 2.