The law is not supposed to make the utilitarian choice of what causes the least net harm to all people, individual rights be damned. That someone died while unchained is not a compelling argument for everyone to be put in irons.

Everyone without a driver's license and liability insurance is in chains with respect to driving a car on on public roadways and it is broadly unanimous opinion that it makes perfect sense. Its a mix of utilitarian grounds, externalities, etc.

You can't build a large dynamite factory in a residential neighborhood either even if you don't intend for it to blow up.

Well yeah, the law isn't "do whatever you want, there are no rules" either. The important thing is getting your license and insurance is purposefully an extremely low bar. Driving is a dangerous activity, someone could hurt or kill themselves or others every time they get behind the wheel, but so long as you have demonstrated the very most basic understanding of what you're doing (ie getting a license), and taken responsibility for the potential consequences of your actions (ie carrying insurance), you're free to take that risk. Note, you still don't have the right to run over pedestrians, but if you do, you will be held liable, not the manufacturer of your car or the state which granted you a license. You would likely lose your license under such a circumstance, but no one else will lose their licenses to mitigate the risk of future pedestrian impacts.

Zoning laws are a complete non sequitur. The issue with building a large dynamite factory in a residential neighborhood is the threat to the people of the neighborhood who not only didn't consent to live near it but specifically chose to live in an area zoned so that such things could not be built. Building a dynamite factory wherever you want is not something you have the innate right to do. That said, you probably can get a permit (assuming you have the proper licenses and insurance) to build a dynamite factory in an appropriately zoned area.