It's standard practice for national schools in Ireland to call children by the Irish version of their surnames in roll calls (assuming there is an Irish version).
Clearly the teacher in this case followed that standard practice and did manage to come up with an Irish version of the surname.
If you want your child to be exempted from standard school practice, it's polite to inform the school in advance.