We don't put immigration first, because our visa system is more stringent than the American's. For example, we don't issue 10 year multi-entry visitor visas. So when people show up, they are less likely to pose an immigration risk.
However, customs has the potential for serious mischief. And it is Canadians who present the biggest risk (and Canadians who should be subjected to higher levels of scrutiny, accordingly).