Since the 1979 revolution, Iran has made detaining foreigners and dual nationals a centerpiece of its foreign policy, trading them for money and people.
Iran’s Hostage Swapping: A Brief History

Since the 1979 revolution, Iran has made detaining foreigners and dual nationals a centerpiece of its foreign policy, trading them for money and people.