I believe that tradition was started in 2006 when Microsoft send Firefox dev team a cake
https://news.softpedia.com/news/why-microsoft-google-and-moz...
Like others mentioned, this story seems to be reference to Gitpod sending GitHub a launch cake for Codespaces.