like any structure, stanchions posts can and will fail when subjected to more stress than they were designed for.... and not all are created equal. some are stronger than others.
that style of stanchion will take more stress outward than it will inward... the weld is light at the bottom of the tube, or possibly even non existent....
life lines ARE NOT hand rails... they werent designed as handrails and they wont work as handrails.
installed handrails are a much better choice if you need something to hang onto when moving about the foredeck.
with an outward force, such as someone falling over and hanging on to it, the stanchion will take as much stress as the tube will allow before it folds/bends at the gusset link... or it rips out of the deck.
but when the stress is inward, such as someone hanging on to it in rough conditions, or helping to maneuver the boat at the dock, or getting up against some other protrusion, or from another boat, the stanchion may fold inward rather than ripping out of the deck.
the stanchion you show may be flawed, or it may have worked according to its design, but either way, I would rather have one of my stanchions do exactly that when it gets against something solid, rather than bending or be pulled loose from the deck.... that is an easy fix without any leftover scars.
and you can weld it up as solid as you want so next time the picture you show will be different, but whenever they are used as a hand rails and hand holds, bent and loose stanchions are very common..