What makes Japanese cars more reliable than others

This has been the story for decades but why? What makes a Japanese car or reliable than the equivalent European car? Why haven't European car makers been able to catch up the Japanese?