It is something you get by specializing on a topic so much that you are pretty much THE expert on that specific topic. (The inside joke is that at the end of your PhD you must know everything about nothing)
This fundamentally makes the usual job search strategy of casting a wide net completely useless. A PhD is typically a worse employee than a normal malleable undergrad you can train unless you really need an expert on the topic the person has a PhD on.
It’s not uncommon for top tier Phds to land good jobs regardless of, but that’s more because of willingness to do different things, give up on solving problems you have invested half a decade into, and the general availability of researchy jobs.
The last one is the least important.