Look: Buy an ICE, any ICE. They get made in their millions.
In those millions, several of the engines blow up in the first 10,000 miles. Crankshaft breaks, throws a rod, transmission strips all its gears, etc. It's not an unknown problem.
The guy who mentioned, "Bathtub curve" has it right. Generally, whatever-it-is one builds, there's a relatively high rate of failure that gets lower pretty quickly. The technical term is, "Infant mortality". One sees this on, say, a case of light bulbs: In that case of, say, 100 or so, it's probably 50:50 that one of the lights will flash and burn the moment one turns it on for the first time.
What happens with Teslas? Well, the 2018 M3 RWD LR the SO and I bought back in 9/2018 blew the pyro fuze at around 5000 miles. The pagoda wiring harness was replaced and the car continued on; we sold it this year for a 2023 version of the same (AWD, though) without any more issues.
Does the occasional bad battery pack escape the factory, despite the testing they do out there? Sure, just like those ICE engines that blow a rod, even though the engine was tested. In large numbers? Nope. Will Tesla make it good? You betcha.
It's statistics and manufacturing variations.