Nature creates the best. We cant question on natures creation. We only can say a few purpose for what it has been created.
Here is the same for earth. The scientist gave explanations of the feature of the spherical shape of earth. One of the common explanation was that to achieve sunlight at the greater extent and for more time, the earth is spherical fitted. As sunlight is the main source of life on earth.