With people who are intrinsically motivated to do a good job. Craftspeople take pride in their work, because doing it well
feels better than doing it poorly.
They'll voluntarily make their own jobs more difficult if it makes the project better, even in ways that only others skilled in their craft would notice. They'll actually fight management for more hours, more money, better tools, different processes, etc. so they can get it right. Management's role isn't to force them to do their jobs, but to restrain them from going overboard.
Of course, this requires that they feel respected, sufficiently autonomous, and compensated fairly. And that they like what they're doing, at least a little bit. You get this routinely from theater professionals. Warehouse stock pickers, not so much.
Quantitative metrics and "goals" are a form of coercion that management deploys against its enemies to extract performance from people who fundamentally don't want to do a good job. In this kind of situation, we've taken to threatening to cut off their access to food and medicine and send armed men to seize their homes and cars (no, the layer of indirection between employers and lenders doesn't really matter). People like to eat, so they play along. And in rote jobs that only exist because they aren't cost-effective to automate yet, maybe that's the only way to do it.
You're not guaranteed a work environment where craftsmen are intrinsically motivated just by foregoing metrics, but as soon as your introduce "goals" (i.e. threats) a good chunk of people who would otherwise be on your side have instantly switched to searching for the minimum effort they can get away with until their either retire or find job that respects them.
Even if people still somehow feel respected, hitting/optimizing the metrics probably means doing the job sub-optimally, and that takes its toll - even if you personally decide not to play the wrongheaded metrics game, others in the organization will, and that creates conflicts (that you usually lose) where there should have been cooperation.
The Wire is essentially a show about this, and how it creates institutional dysfunction that breaks cities. "The fury of a bureaucrat who wants to do their job but can't because they've been fucked over."