The role of the gas is to prevent evaporation of the filament, without introducing significant heat losses.
What is the purpose of the gas in a light bulb?
to prevent evaporation of the filament, without introducing significant heat losses