To some extent they are the same, and to other extents they are not. That is why they are two different words, with some conceptual overlap. Anonymity is a type of privacy, and privacy (in the US at least) is a concept that appears in the US constitution and in subsequent jursiprudence.