With how rapidly the world has been changing lately, it has become difficult to estimate which of those more specific skills will remain relevant for how long.
And plenty of people will still come along who love to code despite AI's excelling at it. In fact, calling out the AI on bad design or errors seems to be the new "code golf".
I think learning these algorithms was useful not because we use these tools ourselves but because it taught us useful concepts: very practical step-by-step algorithms, and a hands-on introduction to decimal places and powers of ten.
There are other ways to learn these things but I learned them in elementary school by doing hundreds of arithmetic problems over 4-5 years. That knowledge stays with me even if I don’t pull out long division for anything practical.