Anthropic has a proper feedback loop with claude code. They see way more real production data and can detect where their models are weak.
So they can train on prod traces or at the very least use user prompts to seed good synthetic tasks to train on.
OpenAI has plenty of feedback from Codex. Maybe not quite on the same volume as Claude Codex, but still massive. So I'm not sure that's the whole story.
I doubt there's a single reason for why Anthropic are ahead right now. Building a frontier model requires executing well in a wide variety of things. It's probably a result of being slightly ahead in various aspects of of data collection, model architecture, pre and post training, harness development, etc.
It's a shame that so much of what's happening is being closed doors. Maybe one day, decades from now, somebody (or some AI) will write a definitive history of this period, explaining what was going on at the various labs, how their research compared, and what the major players really thought.