at the time there was no Maine- it was part of Mass.
I would think that perhaps he had family there? or some other connection to that area. Not a lot of people living in Maine all year long during that time. My relatives were in both places conducting business...perhaps he was too?