I'm kind of confused too and kind of guessing, but I think the theory behind is that it's just the scale for the chord. When you're playing a D chord, you can play the D major or D pentatonic scale over it. (Until I tried answering this question, I was thinking of it as a Bm pentatonic scale...