Springfield MA is not the state capital. Boston is. But, to your broader point, there's often been a deliberate decision to site the state capital somewhere other than the main city to balance out political and business power a bit.
[ADDED: Ah. Probably referring to Springfield IL.]