Also, git had major competition for almost half of that time where it was not clear at all what software people would settle on (or even if they they would actually settle down).
SQL was nearly undisputed its entire life. It quickly killed every previous architecture, and everything that came after it made a point on being compatible.
This feat was much easier to achieve when the industry was much, much smaller, and a single company mostly owned the entire business sector (who were the people that needed databases in the first place).