When a spinning nebula collapses under its own gravity (and most nebula are spinning at least a bit), it will tend to do so in a disk shape due to the preservation of angular momentum.
It will also tend to spin faster as it collapses, for the same reason, which in turn will encourage further flattening out.
People just saying ``gravity'' are missing the important bit.
>>8
Ignorant dumbass.