Then yeah, I'd keep them confined for a few days to a week.
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/run for a week or so can help 'home' them to lay in the coop nests. Fake eggs/golf balls in...
Maybe those 2egg days finally caught up to them. :D (joke)
Do you free range?
Where in this world are you located?
Climate, and time of year, is almost always a factor.
Please add your general geographical location to your profile.
It's easy to do, and then it's always there!