In my opinion, programming is putting mathematical concepts/theories/hypothesis into practical use based on a particular problem, and it depends on which programming language you're using and what mathematical concept you're using to solve a particular problem.
Consider the usage assembly language as an LLL -- Low-Level Language; you'd use boolean algebra for not only coding, but also to interface a circuit under some circumstances, or just to understand the computer organization and architecture like those of VNA --Von Neumann Architecture. As for other HLLs -High-Level Languages like C/C++, Java, JS, C#, or Python, the picture becomes clear that you don't need to deal with the machine/low level specifics as such in the assembly language to manipulate binary digits. Instead, you use basic logic and algebra to reach your final goal from the source code. What I'm trying to state here is that the degree of the programming language determines the level of math and the type of math that you need to use to accomplish your desired task.
Unfortunately, highschools have specified plans by the department of education, so it's no wonder that they're forced to stick with that plan. I mean, it is important to understand, for example, boolean algebra to understand the functionality of logical circuits, but it would seem absurd/weird to put that into the education system in schools. But culculus and linear algebra are being taught since childhood, and they're still being taught in colleges/universties. So, the question that pops into my mind right now; "How do we improve the mathematics classes in order to provide coverage for major fields that puts mathematics into practice?" To me, I don't know, but if I was a highschool student, I would either study whatever is given to me and keep up with the educational changes, or just get more information by reading external materials other than those presented in the highschool, of course if I'm interested in learning rather than waiting for the class bell to ring.