Answer:
The nuclear fusion inside the core of star produces vast amount of energy. Nuclear burning (reaction) is much different from burning of simple hydrocarbons (coal, petrol, etc) where small amount of energy is produced. The Hydrogen gas or Helium is burnt as a nuclear fuel inside the star to produce energy.
I hope this helps!