AFAIK, the online installer receives data while being in progress of installing. Hence, if your internet connection isn't absolutely stable or if there are any interference while the data is transmitted, you might lose some data packages (which possibly are needed at a certain point) and the installation can get corrupted.
With the offline installer, the information are already on your computer and the installation process can work smoothly.
It is always better to use offline installers.