The baker is only offended if his custom works of art, wedding cakes, are at the reception of a gay wedding.
If the same exact cake goes to a heterosexual wedding the baker has no problem.

The baker is picking and choosing when to be offended and when his religious views are offended. 
Religion is not an excuse for discrimination.