Why are so many Japanese companies opening factorys outside Japan?

Why are so many Japanese companies opening factorys outside Japan?