The Iranians knew that Reagan would retaliate if they kept the hostages any longer; plus the Iranians were making it personal because Carter gave aid and comfort to the Shah after he fled Iran. For that alone, Iran wanted to keep the hostages until Carter was driven from office.
-PJ
Thanks so much!