There is no "main reason" for this, but if you have to choose it should be something having to do with the fact that Japan had very little natural resources, and wanted to remain independent from nations that could bribe it.
To contain the spread of communism. At the time it was spreading throughout most of the eastern half of Europe and some parts of the Middle Easy and Asia also.