That's great, feel free to do that. Many others would rather keep their ancestry or genetic attributes out of the public eye. Maybe it's a source of pain for them, or is required for personal safety reasons. And just because something is illegal doesn't mean it won't happen. Legal "workarounds" are a thing. How watertight is the legislation and practice around preventing employers from taking a peek? Or having someone else take a peek for them?
A concrete example: What could the consequences in today's USA political climate be of having a massive database be with columns: Firstname, Lastname, y_chromosome_present.