I guess it's a fisherman talking?
The boys asks where he's going. The fisherman says he's going "far out (to sea)". His reason is so that he can come in to shore when the wind shifts... it would save him having to row in, I suppose. In this example, "to come in" means "in order that I can come in (to shore)".