I certainly don't know the original purpose, but it did become a two-way wall in the end with the Scotch Clans riding against the English Families, the Families against the Clans and through centuries of inter-marriage, sometimes there would be alliances of Clan/Family against some perceived common enemy or just against somebody who had more than they.
Great thieves and the inventers of blackmail.