The question is whether the Japanese got the word from the Chinese, and if so where the Chinese got it from, or whether the Japanese got the pronunciation independently and then noticed that the Chinese already had a kanji for that word and decided to use it.