It's a government requirement if going through immigration/customs, or at least proof you have had three COVID vaccine injections or a COVID test to the apporirate standard no more than 72 hours before. Your airline may also insist.
https://www.digital.go.jp/en/service..._japan_web-en/