Why do rabbits have whiskers?

As with most animals, the whiskers of rabbits extend of the width of their body. This means when they enter a tight space they can tell just by putting their head in whether or not they will fit the rest of the body safely through.