Type designers mapped and drew different glyphs for each 2+ letter combination that would look weird
For example, "ffi" and "ffl"
This means that, back when each letter was made of an individual type block made of metal, they actually made special type blocks which contained all the letters in the ligature.