There are benefits to telling the truth and benefits to telling lies. Whenever we are faced such a choice we do a bit of mental algebra, balancing the benefits of truth and lies before we decide which to use and what exactly to say.
The equation we use for this may have different weightings for different people (including ourselves). Altruistic white lies will weight personal benefit lower and benefit to others (especially vulnerable people) higher.