And sometimes the legacy is just that the world is a better place thanks to their efforts, and has not much to do with having your name all over the place.
You might care about your legacy while you're alive, but after you're dead, there is no you, so it's not possible for you to care about your legacy after you're dead.