In more detail it's not about the shape, but mass. Planets are massive enough for gravity to overcome the internal bonds in rocks and metals, making even these materials flow into a round shape.
An asteroid could be perfectly round, but its shape is based on material strength and not just gravity.