The primary motivator isn't to save a few bucks.
But also, it's going to save them a lot of cash. Those amenities are incredibly expensive. So much so that the IRS has probed around as to whether they're properly taxed at a compensation level commensurate with their value.
I recall 20 years ago a large UK company wanted to offer free tea and coffee as a perk.
And avoid also to avoid every group having its own coffee/tea club - which lead to messy looking offices and also incidents when some ones decides to take Wally" to task for not contributing.
Basically HMRC said oh that's nice here's the tax bill so that was the end of that.
Ironically it bit the HMRC in the ass as the CFO used the ability to distribute profit based tax free shares as a big F&% you.