RGB curves - Why does adjusting the G curve also result in a change in R and B channels?

It has to happen. It’s simple math.
Let me ask: what do you expect as R value in sRGB output profile when you use ProPhoto RGB as working profile and use this R curve?

grafik