This leaving the group to die can also be observed in other species (cats and dogs do this too).
So this penguin knew its time was up and didn’t want to mess up the colony with its dead body.
We interpret the behaviour through our lenses and experiences.