That's because in all likelihood he is not a spy. He is an agent (lol, not an AI agent) who has a handler, who is the trained specialist[1]. The agent is disposable. The handler or case officer usually but not always has diplomatic cover courtesy of a nation state.
[1] https://en.wikipedia.org/wiki/Agent_handling