Our five-six month old girls were not staying home or together.. They will come when called but not a safe siuation because they were going far... Fenced them in and got four eggs the first day! They were in no danger and were not looking for shelter, they just wander... Why???
Free range birds sometimes need to be 'trained'(or re-trained) to lay in the coop nests, especially new layers. Leaving them locked in the coop for 3-4 days can help 'home' them to lay in the coop nests. Fake eggs/golf balls in the nests can help 'show' them were to lay. They can be confined to coop 24/7 for a few days to a week, or confine them at least until mid to late afternoon. You help them create a new habit and they will usually stick with it. ..at least for a good while, then repeat as necessary.