Why? Their goal was to collect MAC adresses of all the WiFi hotspots they encountered. If you want to do that you have to – at least temporarily – save all packets that are coming in. The code to do this already exists, Google probably repurposed something. Deleting all the packets you received is a additional step, it’s not guaranteed that whatever they used automatically deletes all received packets as soon as they are no longer needed. Someone has to think of that and fix it.
They are collecting gigabytes of data, so those additional packets wouldn’t exactly be obvious. And they probably just copied the HDDs those cars have wholesale, without any prior processing of the data.