I am firmly convinced that after he won the elction Reagan let Iran know (through backdoor channels) that his first order would be to declare war on Iran if those hostages were not released 2 seconds after he is inaugurated.
And they damn well knew he meant it.