There are openings in the pipes that allow roots to reach them. Clay pipe, which is most common in older water and sewer lines, can be easily damaged by tree roots. It is possible to allow root intrusion, but to a lesser degree than clay.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.