It is just a choice that the people at Sun made when they implemented the
Java compiler.
It helps you to keep your source code organized; it makes it easy to find the file in which a certain class or interface is defined. If you have a big project with hundreds or even thousands of classes, this is important.