from the Wiki

Historically, a sheriff was a legal official with responsibility for a shire, the term being a contraction of "shire ...