Because Japan spends little on defense it has money to develop?
Japan actually has one of the largest defense budgets in the world, ranking 9th in 2021. It spends more on defense than Germany, France, and the United Kingdom combined. Japan's defense budget has been increasing in recent years, and it is expected to continue to grow in the coming years.