Society grants a group of people immunity from personal liability when they form an organization that has some chance of carrying out some useful work. The organization becomes a special kind of entity - a corporation. It can operate without its investors & officers fearing that their own wealth is on the line should something go wrong. Societies do this because it is widely believed that it would be impossible for various things to happen without it. That is, if personal liability was always in play, nobody would organize human organizations to try to accomplish difficult/dangerous tasks, and the same might also apply to unlikely-to-succeed-but-potentially-significant efforts.
That's what the purpose of a corporation is, not maximising returns for its investors, which is a recent idea (dating back to the 1970s) and has nothing to do with why corporations exist.
Maybe it actually is in the interests of <some-group> that Intel runs off on tangents. How would we establish that? Well, we'd have to have some understanding of what the purpose of the corporation is. I don't claim to have any special insight into that, I'm just pointing out that claiming that its purpose is maximising shareholder revenue is historically revisionist and inaccurate.
It is not society's business to allow or disallow different kinds of contracts between private parties. If I know that corporation's investors don't have personal liability and still decide to go into business with them, it's my personal decision to accept this risk and not society's. If I so please, I could go into even riskier deals, up to just gifting them my money. It could be a stupid decision, but it's my decision to make, not something that "society" can allow me to do – actually, not society, but it's worst enemy, the government.
Of course, some governments act out of assumptions that you stated, but it's nothing more than just justification for tiranny.
They don't exist and were not created to sell potentially risky products to eager consumers. They were created to engage in capital-requiring efforts (notably expeditions, but also large scale resource extraction and industrial projects) that would not happen without the personal liability release.
They would not happen because the potential for liability related to the endeavor was clear to all (i.e. people would likely die, and vast amounts of money might be lost).
But societies (and notably royal families) wanted those things to happen, and so they create corporate charters to encourage them to do so.
We could make do without corporate charters, but then we'd also likely be making do without most of things they enabled, because essentially nobody would have had the guts to bet their own personal liability on what were clearly risky and dangerous endeavors.
As another comments notes, corporate limited liability is not just, or even primarily, about liability towards your business partners. Build a factory, pollute the water, and without limited liability, you are ruined (which some would argue is the way things ought to be).
That's a common misunderstanding.
"In nearly all legal jurisdictions, disinterested and informed directors have the discretion to act in what they believe to be the interest of the business corporate entity, even if this differs from maximizing profits for present shareholders. Usually maximizing shareholder value is not a legal obligation, but the product of the pressure that activist shareholders, stock-based compensation schemes and financial markets impose on corporate directors." [1]
[1] https://www.lawschool.cornell.edu/academics/clarke_business_...
The risk is that a competitor comes out of these adjacent markets and edges you out. That's what's looking likely to happen with ARM, which is slowly moving from embedded / cellphone to laptops and servers.
Films, albums, festivals, etc.
"But if you don't expand into other markets, you'll eventually die!" Sure, but that's not a bad thing. The purpose of a corporation isn't to continue existing in perpetuity, but rather, to maximize returns for its investors. You found a gold mine? Great, go mine it until it runs dry, then close up shop and call it a day. There's no need to spend half your profits on a wild-goose chase for other gold mines (blackberry investing in self-driving cars anyone?) - if that's what I as an investor want, I can just use my dividends to invest in other companies or startups that are aiming to do exactly that.
I'd rather invest in a company that sticks to the things that it can reliably excel at, and direct its profits back to me, so that I can then invest it in other companies that I trust in other fields. A company that is spending half its profits trying to be something it's not - that's my worst nightmare as an investor.