At some point leaders get to realize that even if nepotism and cronyism can prove unavoidable, a functional government has key departments where for its survival requires that they utilize the best brains & human capital the country possesses.
The first to 3rd President were one time or another made to make appointments on merit that were necessary even when they were not really thrilled about it.