Almost always the thermocouple or thermopile — the sensor that tells the gas valve a flame is present. When it gets dirty or weak it stops generating enough current, the valve reads that as no flame, and it shuts the gas off. That is the safety system working correctly. Cleaning or replacing the sensor is an inexpensive, quick repair. The other common cause is a draft reaching the pilot, which points at the venting rather than the part.
Sooting means incomplete combustion, and incomplete combustion is the reaction that produces carbon monoxide. So yes, it is worth taking seriously rather than wiping the glass. It does not mean the appliance is about to hurt you, but it does mean it is not burning the way it was certified to, and the cause — blocked burner ports, wrong pressure, a venting restriction — is worth finding. Stop using it until it has been looked at, and check that you have a working CO alarm.
The range is wide because the parts are. A thermocouple or a pilot clean is at the low end and often the entire visit. A receiver or wall switch is similar. A gas valve is into the high hundreds, mostly the part itself, and on an older unit that is the point to price a replacement against the repair. An annual service sits below all of them, which is the argument for having one.
Yes, and more than wood fireplaces need it, for exactly the reason people assume the opposite. There is no creosote, no smoke, nothing to clean out — so nothing tells you anything is wrong. A gas appliance running slightly rich produces carbon monoxide with no visible change for weeks. The annual visit is a combustion test, a venting check, the glass seal, and the pilot and safety cutout. It is short, and it is the only thing that finds a fault before the alarm does.
The dividing line is usually the gas valve. If that has failed on a unit over fifteen years old, the repair is a meaningful fraction of a new insert and you are spending it on an appliance that is less efficient and closer to other failures. Pilot assemblies, switches, glass gaskets and burner cleans are all worth doing at almost any age. Ask for both numbers rather than just the repair one.