Question: Why did she gave Miranda that cookie?

Probably a stupid question but I don't get the dramaturgic intention why Mirandas co-worker offered her the rest of her cookie? For symbolising quick cooperative closeness? If yes - isn't that a little shallow? Or couldn't I get the detail?

https://preview.redd.it/eh00wxxegp2e1.png?width=2716&format=png&auto=webp&s=c1e3e6c93438fb84921f5b5c4811c274d95bedbd