There are basic skills that everyone should learn, being able to do simple math in your head is a building block for more complex reasoning.
I once had a roommate who I encouraged to divide our grocery bill by 2 in his head for splitting the bill, by the end of the year he was quick and accurate.
That doesn't follow. I'm not especially gifted at mental math yet I've been able to learn various programming languages and libraries and dev tools. I've also been able understand and implement some algorithms.