Every roof has two kinds of surface. The field is the broad, repetitive expanse: shingle after shingle, or an open run of membrane. Details are everywhere the field is interrupted: a valley, a wall, a chimney, a pipe, an edge. The field is built to shed water in one direction and mostly gets to do exactly that. Details are where water is asked to turn, slow down, cross a joint between materials, or leave the roof entirely, and every one of those requests is a chance to fail.
That is why leaks concentrate at transitions and penetrations rather than in the open field, and why two roofs with identical shingles can live very different lives: the difference is detailing. It is also why a competent inspection spends most of its time at the details, and why a repair scope that never mentions flashing deserves a hard second look. The inspection question set is built to demand exactly that time.