how to keep away pakistani army from power or government

What made army matured in less then 10 years of existence of Pakistan?