You’re not wrong, but there are a ton of outdated unenforceable laws on the books. Between federal law, the state laws of 50 states, and literally thousands of municipalities with their own codes, it’s not really possible to go repeal all of these. Doing so would consume all the time available to city councils, state legislatures, and maybe even the US Congress.
What we do need to do is, when SCOTUS makes a decision that declares a law unconstitutional, especially when it does so in a way that secures a right for a group of people, is to follow up that decision with appropriate legislation to further protect those rights. After Brown v. Board of Education, we passed the Civil Rights Act and the Voting Rights Act and a number of other laws to prevent segregation from being able to return simply by a new SCOTUS overturning Brown (which I wouldn’t put past Alito and Thomas). We should have secured women’s rights by passing the Equal Rights Amendment. We still need to do that. Right now, laws which discriminate on the basis of sex are subject to heightened scrutiny but not to strict scrutiny like laws which discriminate on the basis of race. That needs to change. And that Amendment should be slightly altered to make clear that sexual orientation and gender identity are included.
Passing new laws which supersede defunct ones is more practical than trying to identity and repeal all the defunct ones.