D's design is evolved from already existing ideas to try and give the best of both worlds and modules is no different.
The reality is, Java and C++ both are great examples where module system was added after many years too late. D had it built in from the get go and was designed to benefit from it.