I was watching an old Sherlock Holmes movie and a hobo approached Sherlock and said, "can you spare a shillings for a man in need gov'ner.

Why Governor? I know it probably means the same a "mate" or "friend" but why governor? Why not Chancellor, Mayor, Prime Minister or Burgermeister?