So if they digitally scan the books and publish on the internet for free then there wouldn't be any knowledge gap. These purpose of a library is fulfilled after that in my opinion
While India has a moral claim to these artifacts, it will take another decade or two of growth before there is adequate bureaucratic bandwidth to provision the necessary infra needed to maintain them at home. Until then, the status quo works.