Original: In the United Kingdom, many county names derive from the name of the county town with the word "shire" added on: for example, Gloucester, in Gloucestershire; Worcester, in Worcestershire; etc./O. Etymology of the word county.
Simplified: The shires had the same name as their shire town (for example Bedfordshire).