The Irish question

The Irish Republic is the only country that can be entered by UK citizens without showing their passports. If a special arrangement like that can exist, why can’t there be an agreement by the two governments that there will no Customs checks at the border?