If you believe the nonsense reasons for the war. They struggled to provide any strategic goals for the war when they started.
The most plausible explanation to me is that Netanyahu managed to lure Trump into the war with the premise that if they kill the Ayatollah, they'll get an easy win.