Can't go underground with my terrain

How do I do that?

Unity terrain is a single-sided plane, representing the absolute base of your level. To create caves, overhangs, caverns etc. you’ll need to use a custom mesh.

look out for voxel generated terrains. they are for you. you can even dig underground tunnels with them (like here)