Family of wizards are allowed to know about the magical world, they just aren't allowed to tell anyone. If they do the aurors (wizard cops) will just show up and obliviate (memory wipe charm) everyone who they told, and maybe arrest them.