It’s both, but it’s mainly due to the culture of putting the group ahead of the individual, respecting authority, and with a homogeneous population that makes it possible. The downside is that same culture tends to be more on the xenophobic side if you ever decide to stay in Japan.