Historically, often 9 was used for outside line, 8 was used for a tie-line call (intra-company). This originated in Step-by-Step PBX, where that 8 or 9 on the first selector would literally route you to a different signal path in the switch (to a connector that would hunt to an outgoing trunk). It carried over into early electronic PBXen, that were very limited in the size of their internal routing table, and the logic used to determine routing.
We have no excuse anymore not to be doing full translation dialing anymore - the technology is there and almost universal now.
Full translation means, you just dial the number and its the PBX figures out what you actually wanted - it just requires a little bit of planning - like, 3,4,5 or 7 digits for intra-company calls, 10 or 11 digits for external calls, no prefix or routing codes (like 9 or 8) - 911 can either be routed to an attendant/security or translated out directly.