> I don’t understand why you think that consistency in itself is a moral obligation
Cicero defined justice as giving each their due; not a definition original to him, Plato and Aristotle said more or less the same thing. Inconsistency is a form of injustice because you are giving to one different from what you give to another without a good reason. Justice doesn't demand that you treat everyone the same, only that for any difference in treatment there is a valid justification – I give my own children hugs, I don't give hugs to the children of strangers, but that is not injust, since there is a good reason to justify that difference in treatment. Justice is a key part of ethics, indeed classically it is one of the four cardinal virtues.
> His reason was basically that he might suffer some negative effects from the publicity. But almost anyone whose name is mentioned in the NYT might suffer some negative effects from the publicity
He had specific reasons due to his dual role as both blogger and psychiatrist, that do not apply to the average person. The profession of psychiatry has certain expectations about psychiatrists hiding their opinions from their patients which don't apply to most other professions. Those reasons don't apply to "almost everyone" because most people are not psychiatrists, and most other professions don't care anywhere near as much if clients find out your opinions on unrelated issues.
> It’s “all the news that’s fit to print”, not “all the news except when someone asked us not to publish it”.
But what is "fit to print"? Traditionally journalism justified itself as serving the public interest. What is the public interest in publishing Scott Alexander's real name? I don't see how there was one.
> The paper can't simply grant anonymity to anyone who asks for it
Yes they can: If someone asks for pseudonymity, they should grant it unless there is a strong public interest in refusing it; and if they refuse it, they should be explicit about why they believe denying it serves the public interest in that particular case.