I don't know how such things work in Scotland, but did you submit an application to them that listed references? It's possible that he called to check your references (or a current/former employer) and was told that you wear a kilt. So he may have figured that he would "head you off at the pass" with his smarmy no-kilts comment.