Think about your answer, then reveal below.
Model answer: A ledger line is a short horizontal line drawn above or below the five-line staff to notate pitches outside its range. Without ledger lines, pitches like middle C (one ledger line below treble clef, or one above bass clef) could not be written using the same consistent system. Ledger lines extend the staff's logic — alternating lines and spaces — indefinitely in both directions.
The five-line staff covers roughly a tenth (just over an octave) before requiring ledger lines. Rather than inventing new notation for out-of-range notes, ledger lines preserve the same alternating-line-space pattern. Middle C sits on the first ledger line below the treble staff or the first above the bass staff, which is also why the grand staff (treble + bass) places both clefs close enough that middle C bridges them.