One way to look at it is that JIT is about reducing or eliminating "waste." A quality improvement program is also about reducing waste because reworking a bad part is wasted time and effort compared to making the part correctly in the first place.
So it's not that JIT resulted in higher quality, but an emphasis on quality across the board likely lead to JIT being implemented.