From the story....
A source with direct knowledge of the matter told NBC News that Coats had recommended that Gordon replace him but that White House Chief of Staff Mick Mulvaney told him the White House had someone else in mind.
When Coats told that to Gordon, she felt she had no choice but to hand in her resignation, the source said.