Ophthalmologists also have specialized training for cutting the eye that they learn in medical school (eg: lasik), but for eye exams, an optometrist has the skill-set necessary to perform these kinds of screenings.
A lot of people just get auto-refracted or a checkup by an optician and assume that's enough to get new glasses, but those people can be among the tens of millions of Americans who don't realize they have pre-diabetes.
My ophtalmologist wouldn't only perform measurements to see if my prescription had changed. She would do a proper eye checkup. Retina, pressure and a host of other things.
It wasn't expensive. Of course, it was also not in the US.
You are only there once a year at most, so it is an opportunity to catch things before they go wrong.
I get my eye exam checked every year for other more serious and complex diseases so I think there is a role for the more trained medical professionals but these exams need to be disentangled from the expensive professionals. That is the way to bring the costs down to a fraction of what they are...