Selfish behaviour only works because the rest of society on aggregate are still contributing to the maintenance, development, and research of a multigenerational civilisation.
And those people only make those contributions out of a selfish desire to keep their environment from changing and for their own self-satisfaction of "making a difference".