It does create the rainbow, but it is almost impossible to notice.
When light direction is changed on the glass-air interface - there is always a dispersion : light with different wavelength will refract at different angle and thus create rainbow.
The issue is that when light hits second glass-air interface - incidence angle is opposite, and dispersion almost perfectly compensate, and this recombine light into white beam. In this recombined beam there is no angular difference for different colors, just slight lateral mismatch - so you can barely see rainbow at the sharp edges of light beam - but colors do not diverge anymore.
You can still notice rainbow if you take very thick glass (~50mm), and very narrow and perfectly collimated beam (<0.05mm). Here you can see simulation with exaggerated dispersion:
In a prism, where incidence angles for first and second refractions are very different - this compensation is not working and one can see the rainbow much easier, as there is now angular difference between different colors.


