If fire codes were not a thing, developers would build terrible fire traps and people would rent them. There would inevitably be many deaths; this has happened all throughout history prior to modern building codes (and of course still happens today[1]).
The free market is a lie and impossible; you cannot expect the common person to be an expert on everything. We need (and you should want) baseline standards to ensure a reasonable quality of life for our society - think automobile safety standards and building codes.
Not with that attitude.
[EDIT: sorry, that probably comes across as harsh. My point is that this whole site is for people to discuss things, and your comment(s) seem to advocate that people stop doing exactly that]