He allowed himself a capitalistic thought, and then was smitten by communist conscience and croaked.
In practice, China is one of the more capitalistic nations around. They just can’t call it that, lest they fail to “save face” for being so anti-capitalist for so long.