This happened throughout his first term as well as within the Trump Organization before he sought public office. His management style seems to be one where the boss pits everyone against each other to keep all would-be dethroners at bay. It’s not the best way to distribute the keys of power, but it is a good way to keep anyone from challenging the leader even in the slightest.
That’s what happened in his first term (and apparently within his business for years). Trump’s management style appears to be: gather sycophants and yes men, orchestrate drama to pit everyone against each other, stay in power due to the instability caused by the infighting. No one considers challenging the king if the court is too chaotic.