The more interesting question for me is why we still don't have a widely adopted approach to sharing libraries across languages.
The most promising approach I have seen in recent decades was Microsoft's COM. But it has declined along with Microsoft's clout.
Unfortunately, current industry leaders don't seem to be interested in this problem at all.