Both were named for the Kansas river. The location of the mouth of the Kansas river flowing into the Missouri establishes the longitude that the whole western border of Missouri (except for the Platte Purchase). Basically Kansas state is where the Kansas river flows and Kansas City began where the river ends.
Removed by mod