Well, this inner core is a hot place, isn't it? According to scientific data, the star produces huge amount of energy. This energy releases during the process known as nuclear fusion. In order to create helium, hydrogen atoms within the core of the cosmic body get really compressed and then fuse together. It is amazing, but this stellar energy turns out to be a by-product of the processes (such as creation of helium) within the solar core.

More Info: www.space.com