>>6107778From what I recall muggle born wizards can come from families that have never had a recorded witch or wizard, but that might just be that maybe there was one 300 years ago and most people don't keep records of shit that long ago. Could be a couple of people had recessive gene that just happened to meet. Shit like that happens on occasion IRL like non-Ashkenazi parents ending up with Tay-Sachs kids or dark skinned people ending up with light eyes. People also have epigenetic factors which can affect gene expression or even completely mute certain ones. If you go back far enough? Every single land dwelling mammal has a bit of normally non-expressive ancient proto-herpes virus in their DNA now due to a mass spread of it a long, long time ago. Marsupials apparently got out of that deal, but the ancient retro virus which was around is now in all our DNA. Can pop up in certain ways.
But I don't really want to think too hard about magic genes... I am just going to go with the idea that magic is something that can just pop up in anyone, though people who are already magic pass a very strong affinity for it to turn up in their kids or something. That is a force unto itself.