Bowden cables (whether for shifting or for brakes) running outside a frame save a little weight and expense by using the frame for compression in lieu of the housing in long stretches along the frame—using ferrules and cable stops brazed/soldered onto the frame.
Do inner-routed cables also sometimes have segments without a housing? This would significantly complicate replacing a cable, and the movement of the inner cable will eventually cause damage, by fraying the cable and by slowly cutting through something else, if it touches anything inside.
Background: a cross-section reveals a lot about the inner working of a device. A shoe shown sliced will tell me, as with a bike, how much mileage I can expect to get out of it. But since no one has yet sliced a bike frame to show us the details of inner-routed cables, I need to ask.