Dachshunds were originally bred to help hunters capture den-dwelling animals like rabbits and badgers. That's why they're so short: the shorter they are, the easier it is to make those tight squeezes.
Cats are natural predators so anytime they see anything moving, be it a leaf, a scrap of paper, or yes, your gorgeous project you are knitting they will try and attack it. Sure, you can lock yourself ...