What makes locking a rear tire so dangerous?

Locking the rear wheel is especially dangerous because it takes away your ability to change direction.