They don’t, generally. They did a long time ago, when those laws were enacted. Since then sentiments have changed, the laws have been found unconstitutional and are no longer enforced, but some remain on the books because it takes time, money and effort to remove them.
I agree with you that it would be neater if they were all repealed, and it would remove the (relatively minor) threat from more extreme factions who do want to enforce them again, but at some point you also need to be pragmatic.