Glasses and contact lenses have extreme potential for abuse, and should only be used with a recent (1 year) prescription from a licensed optometrist.
Also, the skillset required to prescribe glasses and contacts is something that can be (and is in some countries) effectively on the job training, not necessarily something that requires a specialist doctor with years of education. In most of Europe your average glasses shop can put you in a machine for a few minutes, and spit out an accurate prescription.