I mean, a society devoted to enriching all humans in multiple ways will want mathematicians. A society that aims to just suck all the value it can out of a given human wouldn't need and so wouldn't have mathematicians, if the answers they give can be provided by a machine.