Transistors aren't all switches
The first transistors were used as analog amplifiers and controllers. FET transistors are the switching transistors, and even they can be used as an amplifier. Just because it can't be "turned on/off" you can create circuits that take into account anything below a certain level = 0 and anything above another level = 1.