Most bikes differ from cars in that they have separate front and rear brakes, while most cars' brakes function as one. In addition, motorcycles use different front and rear tires; weight shift is also a major part of a motorbike's stopping performance. Anti-lock brake systems for bikes and cars face different challenges.
Anti-lock braking systems (ABS) are relatively new for bikes. There’s no one standard system. But all ABS work in a similar way: they compare front- and rear-wheel rotation speeds, and if one wheel is locking up under braking (skidding), ABS momentarily releases braking force to that wheel and then re-applies it. The best systems do this about 24 times a second—much faster than any human.
Many also automatically apply both brakes, linking the front and rear. Your rear-brake pedal still (mostly) controls the rear brake, but applies some front brake as well; ditto for the front-brake lever.
ABS helps you stop faster because it helps to eliminate skidding, though it will do nothing for increased stopping distances on wet roads or ice. But since most riders tip over if they lock a wheel, anti-lock brakes are a real benefit. They’re usually more costly, add weight and complexity to a bike, and some riders resent the perceived loss of control.