Originally Posted By: matthew_k
It's one of those oddities that I can't explain, but many canadian airports have us customs in the airport, so you clear customs before you get on the plane and the plane lands at a domestic gate.


To further add to this oddity, Dublin and Shannon airports have US immigration checks. It really speeds up arrival times in Boston.
http://en.wikipedia.org/wiki/United_States_border_preclearance