Ian McEwan likes to explore different professions in his novels. In Saturday it's a surgeon, in Solar it's a physicist and in Sweet Tooth the key characters are an MI5 operative and an author.
Interesting that he wanted to explore the life of a judge, I haven't read this one but it sounds fascinating. I suspect he was more interested in the ramifications of a judge coping with a difficult case than in JWs.