For better or for worse, on broader historical timelines, legitimacy and competence is ultimately derived from power.
Even the rule of law we enjoy during peace was put there by power.