The thing is that they aren't saying that algebra learning causes good programming. They're saying it predicts it. They don't delve into underlying factors, but general mental ability is certainly implied.
In other words, an algebra test just acted as a noisy, imprecise measurement of general mental ability.
In other words, an algebra test just acted as a noisy, imprecise measurement of general mental ability.