Hemmingway was a principled traitor; and the principle was international communism.
People usually turn spy for one of a few reasons...
Ideology.
Money.
Sex.
Ego.
MICE.
Money
Ideology
Conscience
Ego
I think “sex” would be in the Ego category.