Every Major scale has a relative minor scale created from it's 6th interval pattern. So, the G Major scale is ; 1-2-3-4-5-6-7 (G-A-B-C-D-E-F#)
The 6th interval is (E) and is the relative minor (Natural) to G, when using the same notes in sequence starting from (E); 1-2-b3-4-5-b6-b7 (E-F#-G-A-B-C-D)
The G Major Pentatonic eliminates the 4th (C) and 7th (F#) intervals and uses; 1-2-3-5-6 (G-A-B-D-E). The last note in the Major Pentatonic scale (E) creates the relative minor scale;
The E minor Pentatonic eliminates the 2nd (F#) and b6th (C) intervals (the positions of semi-tones from E) and uses; 1-b3-4-5-b7 (E-G-A-B-D).
Since semi-tones form a degree of harmonic tension, they are removed from the Pentatonic to avoid the chance of landing on a hanging note.
Here's an example of harmonic tension; Strum a G Major chord while playing a C note along with it. It quickly becomes irritating if the C doesn't get resolved.
Since the Blues sound feeds off of tension and release to create it's feel, the Blues scale was introduced by adding in it's own version of interval alterations in the Pentatonic scale to somewhat weaken it's stability in order to bring back a degree of tension needed for the Blues signature.