How can you short it to ground if it's not plugged in? And who tf solders their TE with it plugged in?
I could understand if you meant "don't short any pins together with a big soldering iron tip".
I think the point is that with the device unplugged from power, the only thing keeping the volatile memory alive is the battery, even if it is "on its last legs".
If the battery is completely dead & you have stuff you don't want to lose, turning it off would be a problem, so that is why people remove & replace the battery with power on.
There
is an alternative to a battery or gas iron---If you have some versions (certainly mine) of the Weller WTCP, which do not tie the iron tip to Mains Earth.
In those units, there is no ohmic connection between the iron tip, & any part of the Mains supply due to the primary to secondary isolation of the transformer.
I remember, years ago, such irons modified with a switch to provide or remove tip earthing as required.
Later ones seem to have the tip connected to Earth, so that trick would require you to open the transformer box up & temporarily "float" the tip.