A small electrical difference
Capacitance describes the ability to store electrical charge. A conductive sensor pad has capacitance even when nobody touches it. A nearby finger changes the electrical arrangement, creating a difference that a touch controller can measure.
One measurement technique charges the sensor, shares charge with a reference capacitor and reads the resulting voltage. The electronics translate this physical effect into a value. A button can therefore sit beneath a suitable covering without needing a moving mechanical contact.
The sensing layer produces measurements; interpreting an intention is a separate task.
From a reading to a decision
A controller compares a measurement with an untouched baseline. Filtering can reduce the influence of brief disturbances, while a threshold helps decide when a change should count as contact. The exact method depends on the sensor and electronics.
Consider a hypothetical touch button on a reading lamp. A useful design would distinguish a deliberate touch from a momentary fluctuation. A visible indication could then confirm that the input was recognized.
When looking at touch controls, ask two different questions: how does the surface detect contact, and how does the interface communicate the result? A reliable measurement and a clear response each contribute to the experience.
Further reading: Microchip: touch sensing with ADCC.