Maximizing total surplus is the aim of a (hypothetical) benevolent social planner whose goal is to allocate resources with the greatest efficiency.
To add, a social planner is a decision-maker who attempts to achieve the best result for all parties involved.