It wasn’t until after TWA flight 800 that the U.S. government began requiring passengers to show ID. President Clinton wanted to be able to announce something to look like he was doing something after the event, since initially there was speculation that the explosion was terrorist-related rather than an accident.
Airlines have wanted customers to show ID for a long time because they don’t want their tickets to be transferable.