Salve, GO!
It's simply the morphological evolution of the Latin word into modern English, via French empereur..
In Latin, both the commander's and the Emperor's title were written the same, Imperator.
If my memory serves, the title imperator, i.e., 'commander', was given to a victorious general by acclamation of his men and did not (originally) have a political connotation.