>How did they build those deep tunnels before the invention of TBMs?

Same approach as TBMs just manual AF. Dig a bit, put in supporting structure. Rinse and repeat.

They've been at it since 1890 though so that helps