Thats why Star wars was/is so succesfull. It doesnt explains almost everything. For example: what fuel the ships are using, what food the protagonists/rest of the creatures eat etc :)
So the space worm is just placed here without the audience care what it was before or after this scene
-Angel