The Irish and Scottish are Celtic, not Anglo-Saxon. They are linguistically and culturally Celtic but are related to the Anglo-Saxons because they all derive from the same Indo European people.
The Irish and Scottish have a heavy Genetic relation to Anglo-saxons due to the settlements in Ireland and Scotland