This mentality is encouraged because otherwise it would be harder to recruit soldiers, but it's bad strategy. There are times when the success of a mission may depend on leaving someone behind.
EDIT> Just as the "never leave anyone behind" meme is an artificial construct, you might be able to train a force with a culture of "I will never force my mates to have to rescue me". Warrior culture is a construct.