Blue eyes are believed to be caused by an isolated, inherited gene, OCA2. This gene is present in all people that have blue eyes. It disables the production of melanin in the iris.
All blue eyed people are believed to have a common ancestor from 6000 to 10,000 years ago, the first person with blue eyes (originally caused by a random mutation). It’s harmless enough that lots of us have it now.
See [1].
[1] https://www.sciencedaily.com/releases/2008/01/080130170343.h...
I ask because my niece had blue eyes as a baby. This didn't make any sense because my sister was Indian, our parents were from India, their parents were from .. well I guess now it's Pakistan, but they migrated during the partition.
My sister married a white dude, but still it seemed very unlikely her daughter wouldn't have brown eyes. That's when we found out my grandmother got her education in Europe, and came back pregnant. Apparently divorces at the time were so shameful that it was better to tell your child their parent died.
My nieces eyes are now a bit hazel/blue-green ish. My grandmother passed away not too long after that, and that secret would have died with her, if it wasn't for the fact that my niece had blue eyes.