Why did Illinois get its capital springfield?

Illinois got its capital because before springfield there used to be another capital kaskaskia, it got its name from a river but then the river dried up so they used another river called Springfield.