There is an argument for that being an opinionated part of the Java language, and as i hear it, opinionated programming languages are all the rage.
Fwiw, I like that class names and file names must match. In python codebases I have had annoyances with this when I adopted others work.