Stars vary in size due to the non-homogeneous nature of the universe and the differing initial conditions of the gas clouds from which they form. Factors like pressure, density, and gravitational forces play significant roles in determining a star's mass and size. While all stars ignite fusion at similar core temperatures, their final mass is established earlier in the formation process, leading to differences in size. Higher mass stars experience stronger gravitational forces, which affects their heating and size compared to lower mass stars. The formation of stars, especially high-mass ones, remains a complex area of study, with ongoing research into the influences of magnetic fields and turbulence.