It was Cosby's reputation as a public moralist that prompted a federal judge, acting in response to a request from The Associated Press, to unseal portions of the deposition.
Cosby was forced to testify in the civil suit, then later prosecuted using his forced statements. He has serious grounds for appeal.
That, and his publicist released something on Twitter, asking people to comment on, “Who am I?” Some comedian blasted him as being a pervert and that brought it all out.