Is this supposed to be surprising? The Hamas/Iran connection is well kown.
The Iran connection my be something entirely different. Israel needs to clean out Hamas’ stock of rockets in preparation for an attack on Iran. Because when Israel attacks Iran, Gaza will be used as a launching pad to counterattack. But if Hamas’ rocket supply is depleted, that threat is eliminated.