What Happens Inside Bicycle Brakes
A moving bicycle has energy of motion. To stop, that energy must go somewhere. Your brakes do the job by using a force called friction.
Friction is the pull that happens when two surfaces rub together. When you squeeze the brake lever, a cable pulls two rubber pads against the wheel. The pads grip the spinning metal rim. The rubbing between pad and rim makes friction, and the friction slows the wheel down.
Where does the energy of motion go? It turns into heat. Brake pads and rims get warm after a long stop, because rubbing always makes some heat. You can feel this on your hands when you rub them together quickly.
Wet weather changes how brakes work. Water makes a thin slippery film between the pad and the rim, so there is less friction. A rider who uses brakes in the rain has to start slowing down sooner. Worn pads are a problem too, since they may be too smooth to grip well.
This is why a careful rider checks the brakes before every ride. Good friction is what keeps a bike under control when it needs to stop.