They also get taught English in school for multiple years, and English is on almost every sign in major metro areas
Travelling to Japan while only knowing a couple of phrases went perfectly fine due to most people being able to understand what I needed them to, even when my wife and I got lost and had a group of 6 or so people at a local hospital frantically trying to help us find our hotel