I admit that I've only started taking chess seriously in the past few months, but I'm having some trouble wrapping my head around this bit of theory. To be crystal clear, when I refer to the Pirc Defense, I'm referring to the following (or some transposition thereof):
[FEN ""] 1.e4 d6 2.d4 Nf6 3.Nc3 g6
I know I understand Black playing Nf6, and I can understand the logic somewhat of d6 since it opens up Black's queenside bishop while preventing e5 from White, but I can't understand the benefit of g6. I know that the idea is that it allows Black to fianchetto kingside at some point, but I can't comprehend why that would be desirable here. White's d pawn blocks access to the knight on c3, meaning it's not pinned, and black's only developed knight blocks the move anyway. Is the appeal just that it threatens Bb4+ at some point in time, or is there something more elegant that I'm missing?