Lighting network is also distributed, you don't need a direct channel between you and another party to pay them. You just have to find a route.