The voltage and frequency are independent of each other.
A quick web search revealed this in the first result: https://www.electricaltechnology.org/2025/02/japan-50hz-60hz.html
This division originates from the 1880s, when Tokyo imported 50 Hz generators from Germany, while Osaka chose 60 Hz equipment from the United States.