Take an office that runs its own phone equipment. A PBX in the building handles extensions, transfers and voicemail, and lines from a phone company connect that PBX to everyone else. Teams keeps the same two parts and moves both to the cloud.
Microsoft's add-on licensing page describes Teams Phone Standard as a hosted telephone service with PBX capabilities. It names cloud voicemail, call forwarding, call transfer, auto attendants, call queues and caller ID. The same page describes a Calling Plan as an add-on to Teams Phone for calls to the PSTN, the public switched telephone network that landlines and mobiles are on. With a Calling Plan, it says, "Microsoft is your PSTN carrier."
The dependency runs one way. A Calling Plan is an add-on to Teams Phone, and Microsoft's Calling Plans page says an account needs Teams Phone before a Calling Plan can be added to it. Teams Phone works without a Calling Plan as long as some other carrier connects it to the phone network. Microsoft's Teams Phone licensing guide says that if you use an operator other than Microsoft, Microsoft requires no further license, because you pay that operator for the calling.
Calls between Teams users in the same organization normally involve no carrier. Microsoft's Teams Phone overview says those calls are handled inside Teams and never reach the PSTN. The difference between the two licenses starts to matter when someone has to call a landline or a mobile, or a customer has to dial in.