Why are building permits required?

Building permits provide a means for code officials to protect the public by reviewing all building plans with the intent to reduce the potential of hazardous, unsafe construction thereby ensuring public health, safety and welfare.