To me it's part of the "stretch your mind" philosophy. Plenty of
exercises that add some suppleness and help with all round problem
solving. It's one reason I keep up with Lisp even though nobody cares
much to learn or pay me to program in it these days. Any programme of
discrete and abstract maths surely has the same benefits, with a
little bit of different theory areas; number, group, sets,
operator... all healthy stuff unless taken to extremes :)