Mathematicians are able to quickly pick up new technical concepts and systems. Also, studying mathematics trains you to recognise and focus on important edge cases. That's good for designing software to be robust, finding problems in specifications, and testing.