Bob the Hamster eats soap. Which is bad. So he needs to spit out the bubbles to purge himself. And he might as well defeat some enemies along the way, no?