Literally, "rub off" means to transfer through contact. ("when I walked too close to the chalkboard, the chalk rubbed off onto my sweater.")
Figuratively, "rub off" means that something transfers from one person to another. In this sentence, the parents' qualities transfer and stick to the children.