Alan Mustard, former US ambassador to Turkmenistan and trained in agriculture, is a well-known OpenStreetMap geek and quite familiar with GIS issues. Diplomats can have hobbies, you know.
I myself am a linguist and translator, no professional background in the hard sciences or IT at all, but I have still been involved in Free Software for many years and so HN is a natural news channel to read.
It could be someone who was in tech or was educated (formal or by oneself) on tech but switched to being a diplomat on seeing opportunities to make a better difference with their skills. Depending on the area of work, diplomats could highly benefit in today’s world by understanding tech better. We have allowed tech to dictate policies for too long and playing catch up. So any diplomat who understands tech well would be a great asset to policy makers and decision makers.