Obviously your world seems more perfect than ours, but the hard truth in the commercial world is that there is always a tradeoff between quality and the amount of money and time available.
I've been in management for five years now. I've been doing automated testing for fourteen years now.
Now that we're past the credential waving protocol, let me paraphrase what I said, lest it be waved away under the flag of "We don't have time to do it right. We're doing Serious Business".
Of course, code must be good enough to be tested but it surely doesn't have to be perfect.
If you run your code differently under testing than you do in deployment, your tests probably aren't testing what you care about.
I didn't use the word "perfect". Please don't read into what I wrote; you'll confuse things.