I knew quite well, when I gave the names of our agents in the Soviet Union, that I was exposing them to the full machinery of counterespionage and the law, and then prosecution and capital punishment.
You might as well ask why a middle-aged man with no criminal record might put a paper bag over his head and rob a bank. I acted out of personal desperation.