God could have bypassed all protocols and land David in the Palace, but that would be suicidal for David. He had to learn the language of protocol and statecraft. He had to learn how to deal with pressures of success and pass - women, power, wealth.
1 Samuel 18:1-14
David, Women, Dangers Of Success, Risks Of Popularity