Many fundamental, life essential theories were formulated by great philosophers, mathematicians, physicians , scientists.
Going to the BC/AD era, when philosophy/logic was a key aspects, all these schools had purpose to make thinkers, not to make someone sit and rote subjects.
Mathematicians like Euler/Euclid/Pythagoras/Fermat and many more, found patterns in nature and could see harmony in nature's flow. They codified formulations and documented axioms. Their mental acumen and visualization capability were better than computers and machine which came centuries later.
What made them discover these patterns in numbers, relationship between numbers? Is it for their livelihood, to achieve fame, to be rewarded/awarded by a committee ? NO, not at all most of our fundamental mathematics were founded by people who did not make a fortune or inherit wealth ( some might have been already wealth) doing this. To me they were the real open source pioneers.
They did not clamour about their achievements, rather fought tooth and nail to prove or disproved by others. In some case, the implication of their discoveries were not usable until late 19 century.
Industrial revolution and Information revolution in late 18 century and 19 century harnessed the discoveries/inventions of previous generation and attached value/price to it.
Glad there was no patent regime in 1 century BC or till 17 century AD, otherwise right from the number system to planetary motion would have been patented and would have stemmed the scientific discoveries and inventions.
Looking back at the luminaries of bygone era, they lead an unfettered life and without any obligation for financial goals to achieve. They were soaked with nature during their entire life time , like Charles Darwin, Newton, Galileo, Da Vinci. They did best which suited them and not for anything else.
Even today there are people, who call themselves "following passion", who tread along the path of great master of previous era, hope education does not spoil them, rather Nature, does it best, nurturing them.