Yeast never touches spent grain. You are perhaps thinking of the
technique of using bottle-conditioned beer as the basis for a starter.
Here's the beer making process in a nutshell.
Grain, usually barley, is malted. That means that it begins to sprout.
The malted grain is mixed with water and heated to 150-160 degrees.
This releases the starch and the enzymes that convert it to sugar.
The grain is removed. That's the spent grain we're discussing.
The resulting wort is boiled to complete the conversion process. Hops
are added at this point, different hops at different times.
The wort is cooled and yeast is added. This is the first appearance of
yeast in the process. This is brewing yeast, not bread yeast.
The wort ferments into beer as the yeast converts the sugar into
alcohol. The amount of alcohol depends on the amount of sugar which in
term depends on how much grain was used in the first step.
When the fermentation is complete, most commercial beer is filtered and
pasteurized. This provides the clean and clear product that most beer
drinkers expect. It is then carbonated by using CO2 under pressure and
bottled or canned.
Sometimes the process of bottle conditioning is used. In this case, the
beer is not pasteurized and a little sugar or other fermentable is added
to the beer. It is then bottled. The residual yeast converts this tiny
bit of fermentable material into CO2, thus carbonating the beer in the
bottle. It is this type of beer that has a bit of viable yeast in the
bottle.