That's only true in the vaguest sense, and not something that's inscribed in law. According to a link someone else shared[1], the only real requirement is for google to do a "consultation". There's no requirement or duty to keep people employed.
It's up for debate but I do think this indicates that the UK government is concerned about companies laying off a large number of people. In my opinion, this and the rules around the fair selection process are designed to make mass layoffs less attractive to companies.
In regards to how the activities of a company like Google appear to any regional government, I do think the two most important functions of that company are to employ people in the region and pay taxes to the regional government. They do not seem vague to me and, in this case, we have laws on both sides: some that deal with taxes and others that deal with employment and layoffs.
[1]: https://nhglobalpartners.com/employee-redundancy-in-the-uk/
[2]: https://www.gov.uk/government/publications/redundancy-paymen...