If you want a car you're forced to buy a catalytic converter, it's illegal to buy a car without one and it's illegal to operate a car without one. If you want to drive on public streets you are forced to pay to register your car then on top of that you are forced to buy liability insurance. You're also forced to buy a car seat if you're driving with a small child. In many states you are forced to pay for regular safety and emissions inspections and forced to pay for any negative findings.
It's also generally illegal to dump human waste in your front yard so you're forced to buy a toilet and pay to connect it to the sewage system or pay for a septic tank. And then forced to pay to maintain that septic tank.
You're also forced to buy flame retardant building materials that are structurally sound and appropriate for the location you're building.
Businesses generally have to pay to dispose of environmental waste properly too so that cost is bundled into many products.
Why? Because nobody lives in a bubble where their actions don't have an effect on everyone else around them. We try to balance individual liberties with collective good.
Examples include: requiring that drivers have car insurance, having home builders include proper sanitation and safe wiring, etc
I imagine if you would like to do so, you would need to comply with the many requirements established by the local authorities.
https://en.wikipedia.org/wiki/Building_code
"The main purpose of building codes is to protect public health, safety and general welfare as they relate to the construction and occupancy of buildings and structures. "
Would you be equally bothered if you were "forced" to make your house compliant with fire prevention standards ?