It isn’t an age thing. I gave up thinking I could outwit the cats a long time ago and I have just learned that the chickens are the same.
My only trick, which seems to work with both chickens and cats, is to close the door to exclude them from where I want them to go.
It seems like both chickens and cats hate a closed door and the minute you open it they rush through. So if I want them in the coop the best way to get them there is to close the door and not let them in. They bellyache loudly and then when I open the coop door they rush in. Presto! Mission accomplished.