More or less same arguments as for choosing React Native for any other project: share some or all code on web/android/ios platforms.
The other option could be compiling libgit2 to native code/wasm and use it in RN and web, but it will be harder then just import js-only npm.