From what I've read, historically the sgian duhb came into use during the period Scots were forbidden to be armed. It was carried concealed on ones person and the custom of wearing it in the hose was because it was considered bad manners to have a weapon concealed while among friends. It's original purpose was a weapon for self defense.