Germany had to, because they’re surrounded by the countries they tried to take over and the people they tried to kill. Germany also desperately needed money from the U.S. to rebuild after WWII ended. Japan has never really had to reckon with its past and has pretty systematically refused to do so.