why is there star

gas cloud get squished (gravitational collapse) then sometimes smaller elements can squish together to make bigger elements (nuclear fusion) and this continues as long as the smolest elements (hydrogen and helium) are in the core