More and more, cars are becoming disposable. Insurance companies have to deal with it, and their customers pay for it in the end.
With the all the plastic being used (often in structural components), expensive sensors, airbags, etc., a minor collision can be $10K or more and require specialized body shops (or outsourcing) for repair. Moderate collision damage that was fixable 10-15 years ago for $5k has probably tripled in price. I don't think I'm far off in that statistic.
Still, the number of accidents is tiny compared to the number of vehicles on the road paying insurance that don't experience loss. It's all math and the insurance companies have it figured out.
Getting back to the topic at hand, that ECU location is poor but I can't say I'm surprised. It probably makes for reasonably tidy (and inexpensive) wiring between the engine and transmission. With all the networked modules present in modern vehicles, that box is likely primarily for the powertrain-- but that's a moot point as any collision in that area would make a real mess out of that wiring harness, which I can't imagine would be a cheap repair.
I really like my Maxima's location, right underneath the interior center stack on the interior/passenger side of the firewall. But that requires a lot of wire pass-through to the engine bay, which evidently isn't favored by the bean counters.