Regulations should cause as much damage to stock price as possible. We should measure the effectiveness of regulations by how much they tank the stock of affected companies. Real change often affects the profits of corporations. If nothing happens, then I doubt the new rules are actually gonna change anything for the better.
The purpose of regulations are to make people's lives better. That could mean protecting them from harms, or preventing other undesirable outcomes. There should be a cost benefit analysis applied there. Of course some things are hard to measure so there will be arguing on the margins.
The place I do agree with you is that if a company's business is doing regulation compliance (see: Intuit), then their viability shouldn't be a factor at all.