The Japanese electrical system uses both 50Hz and 60Hz frequencies because of historical reasons and the country's unique geography.
Japan's electrical grid was first established in the late 1800s, and at that time, it was primarily based on European technology, which used a 50Hz frequency. However, after World War II, the United States began to heavily influence Japan's economy, and American technology, which used a 60Hz frequency, was introduced.
As a result, Japan ended up with a mixed electrical system with different regions using either 50Hz or 60Hz. This was not a problem initially since the two systems were isolated from each other, but as Japan's economy grew and the demand for electricity increased, it became necessary to connect the two systems.
Connecting the two systems was not a simple task, as it required the use of complex transformers and converters. However, in the 1950s and 1960s, Japan developed advanced transformer technology that made it possible to connect the two systems.
Today, the 50Hz and 60Hz systems are still used in different parts of Japan, with the 50Hz system being used in eastern Japan, including Tokyo, and the 60Hz system being used in western Japan, including Osaka. This is due to the fact that Japan's geography makes it difficult to transmit power over long distances, and it is more efficient to generate power locally using the appropriate frequency.