Leadership and management are skills.
As such, they can (and have to be) learned.
As venture capitalist Ben Horowitz puts it, CEOs are made, not born.
Mark Zuckerberg's skill as a CEO, which is now prodigious, was deliberately acquired.
Early in Facebook's development, Zuckerberg was such a lousy leader that one of his executives cornered him to tell him he needed "CEO lessons."
From then on, Zuckerberg dedicated himself to learning as much and as fast as he could.
To help with this, he cultivated a group of advisors, including some of the best entrepreneurs, investors, and executives in the country. This group included Steve Jobs, VC Marc Andreessen, investor Peter Thiel, Jim Breyer of Accel Partners, Warren Buffett, Donald Graham of the Washington Post, and many others. Zuckerberg learned as much as he could from each of these men, as well as from many of the executives he recruited to Facebook. And, gradually, he became a great leader.
No one has all the answers. And the more talented people you surround yourself with, the more likely you'll be to be exposed to some good ones.