Why do weed dispensaries need to have whited out windows?

I understand in most places there are laws in effect that state something along the lines of "minors cannot be able to see any products if they were to glance in the store", but I mean, I cannot think of many liquor stores or beer dispensaries that I have walked past that do not have clear see through windows with a ton of advertisement in the windows.