The CIA was upset they were shut out. Evidence after the fact indicates that the CIA could not be trusted and was, in fact, in allegiance with the deep state to go after President Trump.
Remember, early in Trumps term, a SF operation in Yemen failed because the enemy weren’t surprised. I’m certain someone inside tipped them off to make Trump look bad. The media certainly raised a big stink about it.