Twain became pretty politically outspoken in the last decade of his life, notably in his opoosition to the American actions in the Philipines. He is sort of the pioneer of celebrities speaking out on political matters.
In a book on beatniks (with a socialist bent) the writer was trying to make a case for Mark Twain supporting labor causes.