Society considers it useful to have a sex offenders registry, like where they live, etc. I think gun owners are also a potential threat, ie. there is similar compelling public interest, and thus I don't see why it should be treated differently. For example if a scum of a "law abiding gun owner" like Rittenhouse is living next door you definitely would like to know if it has a gun.