Answer
John F. Kelly dismissed Scaramucci from the White House job because Scaramucci had made controversial statements in the media and had been involved in a number of conflicts with other White House staff. Kelly felt that Scaramucci was not a good fit for the White House and that he was creating a negative atmosphere.