Runs in the family refers to a genetic characteristic that many members of a family have. This idiom is frequently used as a joke about families.
Take a look at this one. Insanity does not run when it visits this particular family. Why? My guess is Insanity likes this family because they are so insane, that even Insanity itself is curious about them. Hilarious!