Answer:
From my understanding, this is because when you shake it, it speeds up the release of C02 from the compressed gas in the drink. When the pressure is realeased, the pressurized environment releases the soda, which is looking for room.
Explanation: