It's possible it comes from a common ancestor, but it could also be a loan word, or more likely, given that it's so short, a coincidence (i.e. false cognate), like the word for dog in Mbabaram (a native Australian language), which is "dog". Better known, perhaps, are ありがとう and obrigado - same meaning, similar pronunciation, but known to be unrelated.