I'm pretty sure that with fire extinguishers, they're tested by weighing them to make sure the contents haven't leaked to the extent that they haven't enough left in them to deal with a fire. It's nothing to do with the contents degrading. They wouldn't normally be expected to leak. A safety and insurance requirement.
With a cylinder for welding you wouldn't expect it to leak at all over years and if it did, you'd only be wasting some money rather than risking life when something that was supposed to work didn't.
Petrol has some very reactive components that are set off with a spark easily. If you leave it too long in a container with air, the air oxidises the reactive bits and what's left won't ignite as easily, so engines using it are at least hard to start. It isn't the same thing as bottled gas at all.