This was a national guard unit mobilized into the army, hence so many men from one small town served together.

The book "The Bedford Boys" gives a good history and insight into the unit.