You can find detailed information by searching how abs work in motorcycles.
But to put it simply, there is relative rotational motion between the front wheel and your frame. You front wheel is rotating with respect to the frame of the bicycle, this is the same relative motion as your whole...