We shouldn't be hyper focused on becoming "especially good" at one thing but . Jack of all trades, master of none, makes you better able to see and apply relevant knowledge to different areas. It's good to know your own limits, but not good to to only focus on one area and ignore others.
Of course it's good always to learn new things, but expecting everyone to be able to "plan an invasion, butcher a hog.. program a computer" is a rhetorical judgement on the potential of humans that ignores the realities of the modern world.
There exists jobs for "pure programmers", but most programmers should have at least a basic understanding for the problem space they are solving. Bonus points if they really understand it and still listen to the full time experts of the field.
The interesting part is that it says "specialization is for insects". Eusocial insects are amazingly successful from an evolutionary point of view, and their social structure is one of the only things in nature humans can't match. Being more like insects is actually progress.
Maybe the thing you get especially good at turns out to be useless or low-paying (for a profession) or of limited fun, social potential, or replay value (for a game).
I would much rather become a generalist and learn a bunch of things, and then do some limited, "shallow specialization" when the need and opportunity arises. But I think you're still more likely on average to be successful/happy with a more generalist/breadth approach.
I tend to think that everything I know represents a thousand things I don't. In other words, there is only so much time in the day or so much space in my brain. If the choice isn't simply binary, as is implied by that original saying, I think it would be preferable to be a "jack of all trades, master of ONE."
Western societies, and probably others, seemed to have this ingrained for quite some time. So much so that people would adopt a name that reflected their mastery (or profession): "Smith", "Cooper", "Fletcher", etc. Obviously, most people through-out history lived in incredible scarcity and consequently had to be somewhat skilled in a variety of things simply to survive. Specialization was the exception for quite some time. It wasn't until technological advancement, widespread usage of labor-saving devices, and later the industrial revolution, that specialization by large numbers of people was feasible (due to the abundance of resources from the efficient production of goods).
Also expertise is not the only component to career success, and everything isn't about career success either.