A closer look at Core accretion model
In the core accretion model, solids build a planetary core inside a disk.
A sufficiently massive core can accumulate a large gaseous envelope while the disk still contains gas. In the disk instability model, sufficiently massive regions of a cool protoplanetary disk can collapse under their own gravity.
The short lifetime of the gas disk sets a deadline for giant-planet formation. A rocky core that grows later may retain little hydrogen or helium.
Want to learn more about Core accretion model? Nebular hypothesis on Wikipedia.

