This extra benefit society gets from vaccinating its citizens is known as "an externality".
An externality is the cost or advantage that influences a group who did not incur that cost or advantage. Business analysts frequently ask governments to embrace approaches that "internalize" an externality, with the goal that expenses and advantages will influence essentially parties who incur them.