What does ‘bob’ mean?

( adj ) To shorten. Why to they bob the tails of some dogs?