Stars are not actually gaseous, they are plasmas, iei.e., highly ionized. HenceHence, the entire star is highly conductive and does not easily develop athe voltage difference via friction needed for lightinglightning like that in our atmosphere. OnOn the other hand, stellar atmospheres have strong magnetic fields which reconnect, and that causes strong voltage spikes that generate high energy electrons. OnOn the Earth we would call streams of high energy electrons lightning, but on the sun we call them flares.