Is there a reason to capitalize the words "communist" and "socialist" in this sentence:

Anyone who thinks that is nothing but a Socialist or Communist ...

This is quoted from a book about writing: "Reading, Writing, and Rhetoric" by Hogins and Yarber.

I can understand if he meant "Communist Party of China" where capitalization is required but in this context, is capitalization justified?