I think it’s a courtesy. I can’t remember any former president becoming a plain “mister,” after leaving office. They’ll add a “former president Blah-Blah” when referring to them, but address them as “President Carter,” or whomever.