Americans instinctively assume “boffin” is derogatory because it’s totally absent from American parlance (iOS autocorrects it to “bogging” in US), so without the cultural context it just sounds like a goofy word, like “doofus.” In an American context, it’s not a word that sounds as if it’s being spoken with admiration, so the true meaning is counterintuitive.