How would that help? The damage would still be done.
If it were calculated based on actual risk, insurance would be minuscule for most people since almost no gun owners cause any damage with their guns.
It would also be highly discriminatory, since gun violence is highly inversely correlated with poverty, and so underprivileged communities would be charged the most.