To avoid one's creditors, as a bird avoiding the hunter.

The phrase has also come to mean to die suddenly. It first appeared in 1797 in the book Walsingham, or a Pupil of Nature by Mary Robinson: "He kept his bed three days and hopped the twig the fourth."