I have no idea why the relationship is so strong, but it is!
Good pattern recognition skills (as in the general meaning of the word 'patterns', not necessarily design patterns), may be part of the reason, since patterns occur in both code and math.
I have no idea why the relationship is so strong, but it is!