If you’re inside Prufrock while it’s mining, you never really see dirt. The only dirt is on the conveyor over your head.
In front of you: the stationary shell (pictured below).
Behind you: a finished tunnel.
There’s a watertight seal between the inside of the TBM and the outside world. Without it, tunneling under the water table wouldn’t be possible.