Why is this move considered an inaccuracy?

Sort:
Avatar of Oilfan89

Why is 

Why is black's move 7 (g2+) considered an inaccuracy? Black is up 5 after taking that rook and gets their queen back through promotion. Is it just because black's queen is essentially inactive? Thanks!

Avatar of LieutenantFrankColumbo