It doesn't.  AA membership even includes agnostics.  It's in the book, Chapter 4, titled "We Agnostics".  It's the NY Court of Appeals that said AA is a "religion".  I agree with the NY Court, but it's not AA that admits it's a religion, it's the NY Court of Appeals.