1 out of 100 short/fail? That means 99 worked fine. WORKED PERFECTLY FINE.
If you read HN you probably write software, and may have seen a fair amount of code written with the same philosophy ... some people would say it's appropriate sometimes, anything more is a waste of expensive developer time ... but clearly in some situations it's not fine.
I find many of the OP's criticisms to be rather facile, and would prefer to see this 'counterfeit' tested to failure, with the results compared to a genuine Apple product. Armed with this comparison, we could judge whether the cost savings were achieved wisely or through foolish design.
Any reader of hardware teardowns should remember that the majority of people writing these pieces have never designed a challenging, original circuit; almost all of them are just implementing designs given to them by IC manufacturers in 'application notes'.
The spacing rules are certainly real requirements, look for clearance and creepage:
https://www.ieee.li/pdf/essay/safety_considerations_in_power...
I agree the design doesn't comply with UL or IEEE standards, and that means it cannot be sold at retail in North America, but that doesn't mean the product is unreliable or unsafe.
I think this is an interesting question to ask. If there truly is no cost difference, why not make a better and safer product? I'd guess that "ignorance" (or at least a different assessment of risk) is the most likely answer. The person laying out the circuit has learned by trial and error, doesn't really understand the safety issues, isn't incentivized to spend time learning about them, and lacks oversight from anyone more knowledgeable.
Is there a better theory?