Direct answer
Every claim is sourced below
The PSTN and a PBX operate at different scales. The public switched telephone network (PSTN) is the shared, carrier-operated system of interconnected telephone networks that can reach almost any phone in the world,[4][5] while a private branch exchange (PBX) is a single organization's own telephone switch that routes calls between its internal users and shares a small number of outside lines among them.[1] The PSTN belongs to national, regional, and local operators and works as public infrastructure,[5] whereas a PBX is privately owned and usually sits on a company's premises or, increasingly, in a provider's cloud.[1][2] The two are not competitors but layers that connect: a PBX links to the PSTN through trunk lines so its extensions can call the outside world, which is why an office needs far fewer external lines than it has phones.[1][3] Modern IP PBX and hosted PBX systems perform the same switching in software and often reach the PSTN over a SIP trunk instead of copper.[2][10]