Because Northern Ireland (Ulster) is part of the United Kingdom, not the Republic of Ireland. Currently both the UK and the Republic of Ireland are parts of the EU, and there is an open border between Northern Ireland and the Republic of Ireland. But if the UK (which includes Northern Ireland) withdraws from the EU, that could change.