It is because both currencies are considered to be safe currencies during increasing RISK-AVERSION environment. You notice that in recent 1 year, they both appreciated together as investors will invest in JPY and USD when stock markets and high yield currencies such as AUD, NZD or EUR fell. If USA raise interest rate, the interest rate differential will be widened between USD and JPY, I would expect USD will rise but JPY will depreciate.