I think software is a lot more brittle than physics. It takes a lot to go from a sturdy building to something that could collapse, whereas in software the difference could be a single line of code, or two transposed words.
Also, the software world doesn't have the benefit of millennia of accumulated best practices.
Finally, the senior engineers and architects who are licensed to sign off on things they will be held criminally liable for do get incredible amounts of compensation as compared to their more junior colleagues.
Anybody can build a bridge that doesn't collapse, it takes an engineer to build bridges that barely don't collapse. This is hard work, don't downplay it.
I'm not sure how facetious you're being so I'll just play it straight. Modern buildings are not supposed to barely not collapse, they're supposed to be safe even under scenarios quite a bit more extreme than what they're expected (or even legally allowed) to handle.
They're supposed to be exactly as stable as required by law for their intended use, using the minimal amount of labor and materials so satisfy the requirements. Making them more stable using more money is easy, but getting the calculations just right requires years of training.
I see what you mean now. My point is that even if there's a minor screwup, the architect probably won't be prosecuted for anything because the building won't fail catastrophically thanks to modern standards which have substantial margins of safety built into them. It really does require criminal levels of negligence or extreme circumstances that would almost certainly save the architect from prosecution to have a building collapse on you.
On the other hand, a minor screwup in software is far more likely to cause catastrophic failure because we just don't know how to workably build large, robust systems out of code.
Nit: meeting the requirements of law isn't barely collapsing; that requirement has so many safety factors built-in because the building code has to approximate so much. The approach isn't that dissimilar from how that "anybody" you mention would build their bridge that doesn't fall down: by guessing safely.
It's over 20 years since I finished my degree, and I've never worked in the industry, but I spent sufficient hours poring over the ISO standard document for pressure vessels as part of my final year project that I can still remember the sorts of things it covers.
Effectively, they test things to destruction, then publish minimum requirements. So if you want to pressurise your reactor vessel to reactor vessel to 30 atmospheres, you can pretty much look up a table that'll tell you precisely how thick the reactor walls need to be for each of the commonly used materials. If you want to use something uncommon, then you need to pay somebody to test it.
If it fails in a catastrophic fashion, you can expect to be asked to show that you did your due diligence, and there are extenuating circumstances a reasonable engineer could not have been expected to foresee and plan for. Or that you did foresee it, and somebody else chose to accept the (clearly defined) risk.
I don't believe they all ask for incredible amounts of compensation