For over the last >1 year, Google has been dismissing people without warning or cause. The days where it was nearly impossible to be fired are over; now you might be severed by surprise for no given reason at all.
Anecdotally speaking, I have seen a change in behavior even from early 2024.
I was in a meeting (online) with a few people from Google shortly before Google IO about something fairly small. The technical engineer actually spoke(!) and he talked about revenue and stuff. I was dumbfounded that technical engineers at Google would ever care about "moving the needle".
It's both. They're usually more lenient than other companies when it comes to performance, but then there are random waves of layoffs that have more to do with what org you're in than anything else.
Firings like this often include a technically voluntary separation agreement that gives you a few extra weeks' pay or some additional months of health benefits etc. precisely to avoid that problem. (Also gets them out of paying unemployment, and means they can get a fresh set of NDAs/nondisparagement etc. signed with the employee.)
I would never fire an employee unilaterally, especially over something like this, when there's valuable IP at stake and you can just talk the person into agreeing to sign over whatever it is you need.