If it's anything like what USCBP occasionally does for an ex-US flight
There's probably a person of interest on that flight that they're trying to intercept.
Did you see what equipment CBSA had on hand? Did they have a mobile fingerprint reader and maybe an iPad or so to process the (presumed) passenger they're trying to talk to?