In the US, TSA checks identification (the "travel document checker").
In Canada, the airline checks ID at boarding. CATSA only scans boarding passes unless you use a trusted traveller lane in which case they will verify you have a NEXUS card.
The rationale for ID verification is to check names against the no-fly list, prevent the reselling of tickets, and reduce credit card fraud.