To my knowledge opto-technician will map and cut new lenses using your frames or old lenses as a template.
Also looking at the prices, it looks to me that most of the profits are in selling the lenses (unless you buying designer frames for gazillion $). Where I live no-name frames are very often free or for extremely low price (< 30$).
EDIT: also it would be an insane task to mass manufacture specific lenses for specific frames, just due to the fact of variability of eye conditions: near-sightedness, far-sightedness, astigmatism and varying strength on these conditions (cylinder angle and diopter).
I've had the same Nike frames for probably over 10 years now and the previous ones (same brand & style) for about 5 years until I broke them. My prescription changes very slowly, so I've only updated the lens once. But except for that one frame breakage, I actually have every eyeglass frame I've ever purchased since I first got glasses in 1993.