How the presidential turkey pardon got its start

It’s customary for the president of the United States to spare the life of a turkey each year for Thanksgiving. But when and how did the strange tradition begin?