Isn't the primary purpose of Government, the defence of the nation? Folks pledged their allegiance to Kings, because he defended them.

At the most basic level, power flows from those who can impose law, order and security, by means of force. Sorry if I am missing something, but I don't see the burning exam question here.