Okay pretend I said baby carrots if you prefer.
I’m sure some companies do cynically provide perks to try to buy or dazzle people, but I don’t think that that’s the only reason that anyone does it.