It's a benefit paid for by the community, yes. Is it socialism?
I don't think it is if the community agreed to that before he was hired, any more than money from the company provided life insurance I have that would go to my family in the event of my death would be considered charity.