The sad truth is that COVID accelerated xenophobia and isolationism throughout the world, and Japan is no exception.
Humans have an innate bias to trust members of their own social group more than strangers and it takes effort to correct this bias. When under (perceived) threat this in/out thinking is exacerbated.