It's a common observation: the capital of a state is often not its largest city (e.g., Sacramento vs. Los Angeles, Albany vs. NYC, Tallahassee vs. Miami/Jacksonville). This isn't an accident—it reflects deliberate historical choices.
Most capitals were fixed in the early 19th century when the state's population was tiny and concentrated in a few river/port towns. The capital was placed where the political elite already lived. Later, railroads and industry spawned larger cities elsewhere, but the capital stayed put (e.g., Concord, NH chosen 1784; Montpelier, VT 1805).
Before cars and phones, a central location minimized travel time for legislators and citizens from all corners. Jefferson City, MO (near the Missouri River center); Pierre, SD; Helena, MT—all chosen for accessibility, not commerce.
Rival factions often deadlocked between competing cities. The capital became the compromise candidate:
Some towns already had a capitol building, prison, or land office. Sacramento leveraged its Gold Rush wealth and central valley location to wrest the capital from San Jose, Vallejo, and Benicia (1854).
Founders often feared concentrating power in the commercial metropolis. Placing government in a smaller, distinct city was seen as a check on urban machine politics (e.g., Albany vs. NYC; Annapolis vs. Baltimore).
Many capitals are the largest city: Boston, Denver, Atlanta, Phoenix, Indianapolis, Oklahoma City, Honolulu. The pattern holds most strongly in older, Eastern states.
Ultimately, state capitals reflect where power resided when the state was born, not where people live today.