You're trying to add logic to a film where they fly a ship inside an asteroid and just so happen to also be flying into the belly of a huge snake/worm thing that just so happened to be living in this asteroid and has been surviving by eating...???
Not knocking the film or anything, just think you are overthinking things a bit! Just enjoy the movie, did any of this bother you when you first saw the film?