Actually, he did do it willingly.  The Actual Civil Rights Commission just told him that if he made wedding cakes, then he'd have to make them for gay people as well.  Instead of agreeing to not discriminate in his business, he decided to discontinue making wedding cakes.  It was his decision what to do.  The commission didn't force him to not make wedding cakes.