When the planets were big balls of liquid rock the gravity of the planet pulled all the rock towards the centre. With a sphere, all points on the surface are the same distance from the centre. If you had a shape with corners, the corners would be pulled in with gravity.
Comments