If Switzerland,which is surrounded by EU countries, doesn't need a hard border, why does a small island, Ireland,do?

Can someone explain it in simple terms?

Frank Parsons

Sandyhills

Bolton