Anti theft perhaps? Last March a guy was able to sneak onto a Delta flight by taking a picture of someone else's QR code. Some ticketing apps have temporal QR codes that are resistant to this exploit.
For a period after 9/11, ID was required to be shown at the gate on domestic flights. I don't recall when that stopped, but it's been a while (and apparently long enough ago that apparently some have never had to do it).
I seem to recall IDs occasionally being checked at the gate prior to 9/11 as well. Memory is fuzzy, but they weren't checking boarding passes or ids at security. But back then I would always get my boarding pass at the check-in counter (sometimes exchanging an actual ticket for the boarding pass).