You’re expressing a very narrow engineer’s perspective that doesn’t consider the realities of managing bare metal hosting at any kind of scale.
These are business decisions, made in terms of core competencies, capex vs. opex, and the difficulties and cost of building out a reliable, sustainable hosting operation that handles all the compliance and security requirements, and the full range of “ilities” that real businesses have to deal with.
The fact that Bob in IT might be capable of doing some of this on his own doesn’t really enter into the picture. It’s not relevant.
There’s a reason that most companies don’t operate their own electricity generation systems. Much the same is true for computing systems.
Most corporations past a certain point have in-house counsel because it would be ruinous to pay Big Law for every little thing.
That's not a narrow legal perspective, it's one look at a very obvious balance sheet. The same could go for hosting.
You’re forgetting blame: if an on-prem system has an issue, that’s 100% on you. If AWS/GCP/Azure has an outage, that’s just bad luck, and everyone else suffers too.
Frankly. Most of that stuff is corporate bullshit. Compliance is 99% fucking theatre, cover your ass audits with a fancy check list.
The capex vs opex theatre is just stupid economics and bad generalization from wall street types.
Almost nothing of it is really real.
And your analogy may impress other glorified salesman, but it doesn't hold water for a second, electricity is fungible, computing is not, electricity is stateless, you computing infrastructure carries your data. Power consumption generally is not a competitive differentiator,computing often is. And of course, the economics IN THE FUCKING REAL WORLD is broken: It is very hard to compete with the prices of the grid, not so in the modern cloud world where hyperscalers captured market enough to feel free to start extracting monopolistic rent from their consumers. And even the premise is uninformed, heavy industry frequently resorts to co-generation, and now, ironically, even data centers projects are exploring it.
There are also many shades of gray between "big cloud" AWS/Azure/GCP and "my own rack" bare metal hosting.