IMO mathematical/logical/abstract thinking is critical for programming well, but IMO that’s different from “math degree” math.
Software as a means to an end can be used in almost every domain, so proficiency within that applicable domain is often either useful or necessary. That is to say, “math degree” math is likely needed for 3d rendering (certain games), scientific computation (incl machine learning), etc, but maybe not, otherwise. It depends on what software you’re trying to build.
To be more specific, general programming is definitely and specifically different from trig and calc. However, because math is also broad, “mathy” concepts like type theory, relational algebra, set theory are considered important for programming, even if only informally or indirectly so.
I think this is common in scientists and researchers. They operate at the edge of knowledge with one foot in the unverifiable and their eyes peering further still into the murky unknown. There is no map nor direction where they’re going, and that extension out into the darkness is often much like superstitious belief.
What makes them different from followers of the occult that remain lost in the fog is that science returns from explorations with verifiable proof. Research lays down new foundations in order to venture yet another step further outwards.