The baker in question claimed they were an artist (separate from their bakery/restaurant public accomodation) and that they had the religious freedom to discriminate against sexual orientation based on their religion.
The court ruled that artists are not compelled to create for whomever they want, but did not say that people can discriminate against other protected classes based on their religious beliefs.