While there is certainly more to be said, here is al ink to a similar question with an answer (Edit answer by u/Reedstilt)
https://www.reddit.com/r/AskHistorians/comments/1fc2af/why_is_michigans_upper_peninsula_part_of_michigan/
The short version is that it is a result of Ohio and Michigan's dispute over the Toledo Strip