The reason is not only that good math is helpful to numerical control, because people with good math scores are often more rigorous and have strong logical thinking ability.
As long as you are rigorous in doing things, have strong logical thinking ability and strong spatial imagination, even if you don't learn mathematics well, you can make up the mathematical knowledge needed by CNC.