I was surprised to find out when I flew home from Europe through Dublin that there is a customs & border control station in the airport, and therefore once we landed in the US no customs requirement - it had been taken care of at the originating end.
Same here for Cancun early 1990’s.