Software and mathematics has something no other field has - verifiable example work.
FOSS has ensured that anyone can look at the code required to build a production ready kernel, for example.
Math too, is simple enough to find what is or isn't correct, and, crucially, why.
Court room law is one I expected to advance more under this thesis, but it's not universal (the subjective nature of law changes by country, state, province, courtroom, even what sort of day the judges are having) - maybe it (AI) will get "better", eventually.
Most other domains have a degree of closed door nature to their example work that inhibits the ability of LLM operators to produce a good training set.
edit: The recent advances in protein work by AI is likely another example of openness working to AI advantage - the rules are quantifiable, and available for anyone
FOSS is much more than that, you have training of the form: "commit msg: Adds feature X. Fixes bug Y." Then a diff of the exact changes. The chat looks like "Add feature X and fix bug Y."