Same reason that someone who's "rich" and "makes good money" would still negotiate the price of their new BMW/Mercedes or their house.
From here down isn't especially for five year olds, but I think it's still graspable.
Running a company properly (by many investors' definition) is an optimization problem, not simply a constraint satisfying problem. If you can have 4000 fewer employees and be more profitable in that state than in yesterday's state, investors will expect you to do that, even if you're currently profitable. (The costs [monetary and morale] of doing layoffs inject a certain amount of stabilizing hysteresis into the system.)
Would add to that statement that even if you have the money to some people negotiation is fun (such as myself). It's a game same as people play other games where money isn't even involved.
Add: What I'm saying doesn't apply to Cisco or companies so much as the statement you made as far as "rich" people or people where it's not the money that matters.
But it doesn't follow that it's a good idea to just spend them on anything, you need to spend them on something with a chance of giving you a return. If you have a division that isn't giving you a return, and you don't see a way of changing that, keeping it around is just a way of making your money disappear faster - which is also clearly undesirable.
Like government, large companies provide a sheltered environment where things happen that couldn't survive out in the real world. Sometimes that's high risk research - Google X, the Manhattan Project. Usually it's people who don't know excel supports formulas, and departments that could be replaced by a web form.
These are protected by many layers of politics, and natural human compassion by managers at all levels who don't like firing people.
Every layoff I've seen, the subtext has been 'lop off the deadwood'. They would make up a reason, but everyone would know.
"like I'm five"
Ok here it is for a 5 year old.
You have a 10 lemonade stands staffed by 10 people. You've had a good year and have made money. But next year you will loose 3 of the stands and so you are going to get rid of three people because they won't be needed even though you made money fine this year.
Let's say I am a Big Tech Company. I make Gadgets and Widgets. If I decide I don't want to make Gadgets any more and make only Widgets, then I don't need the people who make Gadgets. SOME of the people who made Gadgets could be retrained/repurposed to make Widgets, but some can't (or don't want to). Those are the people whose jobs I will cut. And of course, I will use some of my "tons of cash in the bank" to give them severance packages to compensate while they search for jobs in other companies who make Gadgets.
Employees cost money. Companies want to cut costs.