Actions are closed and de-cocked either by hand (bolts) or by snap cap for those requiring it (semis, pumps, hammerless doubles and #1s etc).
Keeps any fluke foreign debris out and I can see no reason for an unloaded, stored weapon to be cocked. But, that's just me making myself better I guess. A life long habit.