Car manufacturing in the 1970's was a mostly manual process and quality wasn't great. Then the Japanese brought in automation and sophisticated quality checks.
The investment necessary for these improvements was substantial and risky. The up-front spend was increased but manufacturing unit costs fell and the reputation for reliability rapidly drove up market share.