That's not a great comparison. Einstein had already turned physics on its head and kickstarted several foundational paradigms in 1905, when he was only 25-26 years old.
I don't fetishize physicists by any means, but Linux and Git are nerdy pursuits that caught on somehow, mainly as a revolt against paid software. Git is pretty bad at times, terrible UX, tons of edge cases, and treats the world as if its made from text.
Einstein set forth some of the most foundational and tested theories ever.
Interestingly if you look at the most popular programming languages they were created by someone 37.5 years old, on average [0].
[0] https://pldb.io/blog/ageAtCreation.html