Even a tiny leak will attract roots over time (look at plumbing penetrations for an example).
Cutting back roots and not building too close to a tree will help delay/minimize issues from roots. A rough rule of (green) thumb is that a tree’s roots will extend out about as far as the canopy of branches. Shrubs will go farther.