Cooking is a process that converts content from the internal format to a platform-specific format. Packaging ensures that all code and content is up to date and in the proper format to run on the desired target platform. Once you select the platform, the editor will compile your game if it contains code, cook all of your game data, and then package the content.
To read a bit more about cooking and packaging, you can review the following links: