It's a way of coping with our limited lifespan. The thought of leaving something behind gives people a sense of comfort that they may live on in some capacity when they pass. The truth is, even if you do something impactful, future generations will often take it for granted or overturn your work in making progress. No one escapes the bleak nature of our existence. No one.
Maybe that’s exactly the issue. Statistically no one will leave behind such a legacy as Pythagoras, but we judge ourselves by the success of those who have anyway.
That's only a few thousand years ago. What about 10 thousand years in the future? Those kind of discoveries only seem great because we are so stupid. Future generations will not look up to a "great idiot" just because he was great.