crazy Clancy time here:
Iran leaders wanted Soleimani gone. (combo of articles from Intercept documenting secret memos showing concerns about his brutality and personal ambition being problems; speculation he was angling for Rouhani's job and Friedman's hamfisted take down of him as a military moron).
Back channel negotiations with US to relieve sanctions and concerns over civil unrest.
"leaked" intelligence to US of Soleimani plans and location.
designed retaliation and subsequent stand down.
Just throwing out for fun.