See the link below-
https://www.cbsa-asfc.gc.ca/btb-pdf/ebsiip-asfipi-eng.html
"At land ports of entry, Canada will receive biographic information from the United States (U.S.) on all travellers who enter the U.S., thereby creating a Canadian exit record. In the air mode, Canada will collect...