Instruct an engineer to design something that is not crap and they will do it, and it will be mass produced with tight tolerance if specified like that. On the manufacturing side... Apple does not manufacture anyway.
And that brings me to: a car is not exactly the same thing as your small household appliance. Like we saw with Tesla, it is not trivial to do with a good build quality, both on the design front and on the build front (way more difficult than small and mostly static objects) -- and it is harder to reject a car with a not stellar build quality because that's more expensive and a huge part of the value is in the mechanics. And quite related: for now Apple does not manufacture, if they start to do cars, will they? Otherwise who will?
To be fair to the designers, the height budget they were working with is an extremely hard target to hit for a part that gets as much physical abuse as a keyboard. I was pretty impressed with how passable the keyboard was for typing on, given the height constraint. (However, I was not impressed with the dropped actuations, double actuations, inconsistent key feel after a few months use, broken keycap that my 1-year-old keeps removing and hiding around the house, etc. Overall it ended up being a catastrophically bad design based on poor reliability.)
The biggest problem at company scale was that they couldn't revert to something like their previous keyboard in a shorter time frame. The lesson is to avoid completely locking the whole rest of the system design around a brand new untested part for which there is no alternative. It would have been better to test the new keyboard design in a context like an external iPad keyboard where if it turned out to be a dud there would be an obvious path to an alternative, and customers wouldn't be left with a broken $2000 machine.
I could believe that their test rig didn't adequately simulate the motions/stresses of finger keypresses.
Uh, the butterfly isn't used in Apple keyboards anymore. They reverted to the old scissor switch design some time ago.
It would have been much better if they had figured out how to cut their losses and revert the keyboards in 2016 or early 2017, even though that would have taken a substantial redesign of the rest of the laptop internals.
Selling 4.5 years of laptops with keyboards that broke easily under ordinary use was a huge black eye for the company.
Given that Apple is still selling, or has only just stopped selling models with the latest butterfly keyboard - the issue may have solution, but hasn't gone away. Millions of laptops have faulty keyboards which, when they break, will be replaced with another faulty keyboard. That's an unresolved issue.
Extremely good build quality? Accessories notwithstanding, most of their products look and feel like they were built extremely well.
Even their failures like the butterfly keyboard looked and felt like they were built to extremely tight tolerances.