I bought an iPod mini for my then girlfriend (now wife) in 2005 that was faultless out of the box and is still working now. That was the start of my interest in Apple stuff but unfortunately also the last time I had such a good experience.
My iPhone 3G had a sizeable light leak down one side of the screen.
My 2009 MacBook Pro came with a dent pre installed on the back, from the factory (hence my username!)
My iPhone 3GS had multiple screen issues, my 4S had a poorly fitted vibration motor and kernel panics, my 5 had dead pixels, all of these were replaced, some of them multiple times until I got one that actually met the spec.
My current 6S is ok so far but less than a month old of course...
Basically Apple products are fantastic but their QA has been absolutely appalling for years, no doubt about it.