Stellar formation

Why is a protostellar disk relevant to the later formation of planets?