The capacitor is discharged using a resistor of known value.
Also take it down to the comparator level which basically all ADC use the op-amps use transistors and resistors and are themselves dissipating the input power in order to measure voltage.
The word transistor is a contraction of transfer resistance, they are electronically variable resistors and as everyone knows dissipate power as heat during function.